JavaScript is disabled on your browser.
@@ -70,13 +76,13 @@
+All Methods Instance Methods Concrete Methods
+
+Modifier and Type |
+Method and Description |
+
+
+int |
+addOpenNetwork(java.lang.String ssid)
+To add an open network to the user's configured network list
+ |
+
+
+int |
+addWEPNetwork(java.lang.String ssid,
+ java.lang.String password)
+To add a WEP network to the user's configured network list
+ |
+
+
+int |
+addWPA2Network(java.lang.String ssid,
+ java.lang.String password)
+To add a WPA2 network to the user's configured network list
+ |
+
+
+int |
+calculateBars(int rssiLevel,
+ int targetNumberOfBars)
+To convert an RSSI level for a network to a number of bars
+ |
+
+
+int |
+compareSignalLevel(int rssi1,
+ int rssi2)
+To compare the signal strength of two networks
+ |
+
+
+boolean |
+connectToNetwork(java.lang.String ssidToConnectTo,
+ int timeoutInMillis)
+Used to connect to a network
+
+ Gets a list of saved networks, connects/reconnects to the given ssid, and then calls waitToConnectToSSID to verify connectivity
+ |
+
+
+boolean |
+disableWifi()
+To disable Wifi on a user's device
+ |
+
+
+boolean |
+disconnectFromCurrentNetwork()
+To disconnect the user from their current network
+ |
+
+
+boolean |
+enableWifi()
+To enable Wifi on a user's device
+ |
+
+
+android.net.wifi.WifiInfo |
+getCurrentNetwork()
+To retrieve the user's current network
+ |
+
+
+int |
+getFrequency()
+To retrieve the frequency of the device's current network
+
+ Used by isNetwork5gHz
+ isNetwork5gHz()
+ |
+
+
+int |
+getFrequency(android.net.wifi.WifiInfo network)
+To retrieve the frequency of a network
+ |
+
+
+java.util.List<android.net.wifi.ScanResult> |
+getNearbyAccessPoints(boolean filterDuplicates)
+To retrieve a list of nearby access points
+
+ *NOTE* Setting filterDuplicates to true will not return SSIDs with a weaker signal strength (will always take the highest)
+ |
+
+
+java.util.List<android.net.wifi.WifiConfiguration> |
+getSavedNetworks()
+To retrieve a list of saved networks on a user's device
+ |
+
+
+boolean |
+isDeviceConnectedToMobileNetwork()
+To check if the device is connected to a mobile network
+ |
+
+
+boolean |
+isDeviceConnectedToMobileOrWifiNetwork()
+To check if the device is connected to a mobile or wifi network
+ |
+
+
+boolean |
+isDeviceConnectedToSSID(java.lang.String ssid)
+To check if the device is connected to a given SSID
+
+ Used by connectToNetwork
+ |
+
+
+boolean |
+isDeviceConnectedToWifiNetwork()
+To check if the device is connected to a wifi network
+ |
+
+
+boolean |
+isLoggingEnabled()
+To query if logging is enabled or disabled for a WiseFy instance
+ |
+
+
+boolean |
+isNetwork5gHz()
+
+ |
+
+
+boolean |
+isNetwork5gHz(android.net.wifi.WifiInfo network)
+To check if a given network is 5gHz
+ |
+
+
+boolean |
+isNetworkInConfigurationList(java.lang.String ssid)
+To check if an SSID is in the list of configured networks
+ |
+
+
+boolean |
+isNetworkSecure(android.net.wifi.ScanResult scanResult)
+To check and return if a network is secure (WEP/PSK/EAP capabilities)
+ |
+
+
+boolean |
+isWifiEnabled()
+To check if Wifi is enabled on the device or not
+ |
+
+
+boolean |
+removeNetwork(java.lang.String ssidToRemove)
+To remove a configured network
+ |
+
+
+java.lang.String |
+searchForSSID(java.lang.String ssidToSearchFor,
+ int timeoutInMillis)
+To search local networks and return the first one that contains a given ssid (non-case sensitive)
+ |
+
+