Welcome What's new in Chrome extensions Getting started API Reference Samples

chrome.system.network

This API is part of the deprecated Chrome Apps platform. Learn more about migrating your app.
  • Description

    Use the chrome.system.network API.

  • Permissions
    system.network

Summary

Types

NetworkInterface

Properties

  • address

    string

    The available IPv4/6 address.

  • name

    string

    The underlying name of the adapter. On *nix, this will typically be "eth0", "wlan0", etc.

  • prefixLength

    number

    The prefix length

Methods

getNetworkInterfaces

chrome.system.network.getNetworkInterfaces(
  callback?: function,
)
Promise

Retrieves information about local adapters on this system.

Parameters

  • callback

    function optional

    The callback parameter looks like: (networkInterfaces: NetworkInterface[]) => void

    • networkInterfaces

      Array of object containing network interfaces information.

Returns

  • Promise<NetworkInterface[]>

    Pending

    This only returns a Promise when the callback parameter is not specified, and with MV3+. The type inside the Promise is the same as the 1st argument to callback.