chrome.system.network

Description: Use the chrome.system.network API.
Availability: Since Chrome 35.
Permissions: "system.network"

Summary

Methods
getNetworkInterfaces chrome.system.network.getNetworkInterfaces(function callback)

Methods

getNetworkInterfaces

chrome.system.network.getNetworkInterfaces(function callback)

Retrieves information about local adapters on this system.

Parameters
function callback

Called when local adapter information is available.

The callback parameter should be a function that looks like this:

function(array of object networkInterfaces) {...};
array of object networkInterfaces

Array of object containing network interfaces information.

Properties of each object

string name

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

string address

The available IPv4/6 address.

integer prefixLength

The prefix length