public class ConnectionState
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static long |
AIRPLANE_MODE_MASK |
static long |
DATA_MASK |
static long |
WIFI_MASK |
Constructor and Description |
---|
ConnectionState(long bitMask) |
Modifier and Type | Method and Description |
---|---|
long |
getBitMask() |
boolean |
isAirplaneModeEnabled()
Is airplane mode enabled or not.
|
boolean |
isDataEnabled()
Is data connection enabled or not.
|
boolean |
isWiFiEnabled()
Is Wi-Fi connection enabled or not.
|
public static final long AIRPLANE_MODE_MASK
public static final long WIFI_MASK
public static final long DATA_MASK
public long getBitMask()
public boolean isAirplaneModeEnabled()
public boolean isWiFiEnabled()
public boolean isDataEnabled()