public class Connectivity
extends java.lang.Object
| Constructor and Description |
|---|
Connectivity() |
| Modifier and Type | Method and Description |
|---|---|
NetworkInfo |
getActiveNetworkInfo(Context context)
Get the network info
|
int |
getConnectionType(Context context) |
ConnectivityManager |
getConnectivityManager(Context context) |
NetworkCapabilities |
getNetworkCapabilities(Context context,
Network network) |
int |
getOpenRTBConnectionType(Context context) |
boolean |
isConnected(Context context)
Check if there is any connectivity
|
boolean |
isConnectedMobile(Context context)
Check if there is any connectivity to a mobile network
|
boolean |
isConnectedWifi(Context context)
Check if there is any connectivity to a Wifi network
|
public NetworkInfo getActiveNetworkInfo(Context context)
context - public ConnectivityManager getConnectivityManager(Context context)
public NetworkCapabilities getNetworkCapabilities(Context context,
Network network)
public boolean isConnected(Context context)
context - public boolean isConnectedWifi(Context context)
context - public boolean isConnectedMobile(Context context)
context - public int getConnectionType(Context context)
public int getOpenRTBConnectionType(Context context)