mobicontrol.network

This namespace provides access to the network functionality, such as SSID of the connected Wi-Fi network.
Since:
  • Version 1.2 (API level 3)

Classes

IpAddress

Network

Members

static, readonly, nullable activeNetwork :mobicontrol.network.Network

The active network.

This property is null if the active network cannot be determined.

Since:
  • Version 1.2 (API level 3)

static, readonly, nullable allNetworks :Array.<mobicontrol.network.Network>

All networks currently tracked by the Android framework.

This property is null if the list of all networks cannot be obtained.

Since:
  • Version 1.2 (API level 3)
Example
var allNetworks = mobicontrol.network.allNetworks;
if (allNetworks) {
    var wifiNetworksCount = allNetworks.filter(network => network.hasWiFiTransport).length;
    mobicontrol.log.info("Count of networks with Wi-Fi transport: " + wifiNetworksCount);
}

static, readonly, nullable ssid :string

SSID of connected Wi-Fi network.

This property is null if device isn't connected to a Wi-Fi network.

Since:
  • Version 1.2 (API level 3)