chrome.system.network
Warning
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
- Methods
chrome.system.network.getNetworkInterfaces(callback: function)
Types
NetworkInterface
Properties
- addressstring
The available IPv4/6 address.
- namestring
The underlying name of the adapter. On *nix, this will typically be "eth0", "wlan0", etc.
- prefixLengthnumber
The prefix length
Methods
getNetworkInterfaces
chrome.system.network.getNetworkInterfaces(callback: function)
Retrieves information about local adapters on this system.
Parameters
- callbackfunction
Called when local adapter information is available.
The callback parameter should be a function that looks like this:
(networkInterfaces: NetworkInterface[]) => {...}
- networkInterfaces
Array of object containing network interfaces information.