com.nativex.advertiser
Class NetworkConnectionManager
java.lang.Object
com.nativex.advertiser.NetworkConnectionManager
public class NetworkConnectionManager
- extends Object
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
context
private static Context context
instance
private static NetworkConnectionManager instance
NetworkConnectionManager
protected NetworkConnectionManager(Context context)
getInstance
public static NetworkConnectionManager getInstance(Context context)
getInstance
public static NetworkConnectionManager getInstance()
isOnWiFi
public boolean isOnWiFi()
isConnectedToCellular
public boolean isConnectedToCellular()
isConnected
public boolean isConnected()
- Checks if the connection is currently available.
checkWifiAccessPermissions
public boolean checkWifiAccessPermissions()
- Checks whether the application has provided permissions to access the wifi state.
getMacAddress
public String getMacAddress()
- This method fetches a WLAN Mac Address, or null if the Mac Address is not available.
getWifiInfo
public WifiInfo getWifiInfo()
- Helper method, returns a WifiInfo instance or null if one cannot be accessed.
release
public static void release()