Connection

The connection object gives access to the device's cellular and wifi connection information.

This object is accessed under the navigator.network interface.

Properties

Constants

  • Connection.UNKNOWN
  • Connection.ETHERNET
  • Connection.WIFI
  • Connection.CELL_2G
  • Connection.CELL_3G
  • Connection.CELL_4G
  • Connection.NONE

WP7 Quirk

  • type: Windows Phone Emulator always reports navigator.network.connection.type is Connection.UNKNOWN