NetworkInformation interface provides information about the connection a device is using to commuinicate with the network and provides a means for scripts to be notified if the connection type changes. The
NetworkInformation interfaces cannot be instantiated. It is instead accessed through the
connection property of the
This interface also inherits properties of its parent,
- Returns the type of connection a device is using to communicate with the network. It will be one of the following values:
- Returns the maximum downlink speed, in megabits per second (Mbps), for the underlying connection technology.
- The event that's fired when connection information changes and the
changeis fired on this object.
This interface also inherits methods of its parent,
|Network Information API
The definition of 'NetworkInformation' in that specification.
|Editor's Draft||Initial definition|
|Feature||Chrome||Firefox (Gecko)||Internet Explorer||Opera||Safari|
|Basic support||20 webkit||No support||No support||No support||No support|
|Feature||Android||Android Webview||Firefox Mobile (Gecko)||IE Mobile||Opera Mobile||Safari Mobile||Chrome for Android|
|Basic support||(Yes)||No support||31.0 (31) moz||No support||No support||No support||(Yes)|
|Available in workers||?||No support||53.0 (53)||No support||No support||No support||?|