The Network Information API allows web applications to read the current network type and the maximum downlink speed that are assumed based on the underlying connection technology used by the client. It also allows to subscribe for a notification when the network type has changed.
The newest addition (mid-2017), implemented by Chrome on Android as of September 2017, also provides an effective network type information that in turn is calculated using the actual network performance metrics collected by the browser, allowing the web applications to adjust to the quality of the connection.
- Returns the theoretical type of the current connection, based on the underlying connection technology, i.e.
- Returns the information about the quality of the current connection based on recently observed performance metrics, regardless of the underlying connection technology, i.e.
- Returns the theoretical maxinum downlink speed, in Mbps, for the underlying technology of the current connection.
- An event fired when the connection type has changed.