public class NetworkManagerAbove24 extends java.lang.Object implements NetworkManagerInterface
Constructor and Description |
---|
NetworkManagerAbove24(AndroidPlatformHelper helper,
android.net.ConnectivityManager cm,
boolean wifiOnly) |
Modifier and Type | Method and Description |
---|---|
android.net.Network |
getActiveNetwork() |
android.net.NetworkInfo |
getActiveNetworkInfo() |
java.lang.String |
getProxyHost(android.content.Context context) |
int |
getProxyPort(android.content.Context context) |
boolean |
hasHttpProxy(android.content.Context context) |
boolean |
isCurrentlyConnected(android.content.Context context) |
void |
registerNetworkCallbacks(android.content.Context context) |
void |
setWifiOnly(boolean isWifiOnlyEnabled) |
void |
unregisterNetworkCallbacks(android.content.Context context) |
public NetworkManagerAbove24(AndroidPlatformHelper helper, android.net.ConnectivityManager cm, boolean wifiOnly)
public void setWifiOnly(boolean isWifiOnlyEnabled)
setWifiOnly
in interface NetworkManagerInterface
public void registerNetworkCallbacks(android.content.Context context)
registerNetworkCallbacks
in interface NetworkManagerInterface
public void unregisterNetworkCallbacks(android.content.Context context)
unregisterNetworkCallbacks
in interface NetworkManagerInterface
public android.net.NetworkInfo getActiveNetworkInfo()
getActiveNetworkInfo
in interface NetworkManagerInterface
public android.net.Network getActiveNetwork()
getActiveNetwork
in interface NetworkManagerInterface
public boolean isCurrentlyConnected(android.content.Context context)
isCurrentlyConnected
in interface NetworkManagerInterface
public boolean hasHttpProxy(android.content.Context context)
hasHttpProxy
in interface NetworkManagerInterface
public java.lang.String getProxyHost(android.content.Context context)
getProxyHost
in interface NetworkManagerInterface
public int getProxyPort(android.content.Context context)
getProxyPort
in interface NetworkManagerInterface