public static class NetworkConnection.ConnectionType extends Object
Data | WIFI | Airplane 0 0 1 == 1 1 1 0 == 6 1 0 0 == 4 0 1 0 == 2 0 0 0 == 0
Giving "Data" the first bit positions in order to give room for the future of enabling specific types of data (Edge / 2G, 3G, 4G, LTE, etc) if the device allows it.
| Modifier and Type | Field and Description |
|---|---|
static NetworkConnection.ConnectionType |
AIRPLANE_MODE |
static NetworkConnection.ConnectionType |
ALL |
static NetworkConnection.ConnectionType |
DATA |
static NetworkConnection.ConnectionType |
NONE |
static NetworkConnection.ConnectionType |
WIFI |
| Constructor and Description |
|---|
NetworkConnection.ConnectionType(Boolean wifi,
Boolean data,
Boolean airplaneMode) |
NetworkConnection.ConnectionType(int mask) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object type) |
Boolean |
isAirplaneMode() |
Boolean |
isDataEnabled() |
Boolean |
isWifiEnabled() |
String |
toString() |
public static final NetworkConnection.ConnectionType WIFI
public static final NetworkConnection.ConnectionType DATA
public static final NetworkConnection.ConnectionType AIRPLANE_MODE
public static final NetworkConnection.ConnectionType ALL
public static final NetworkConnection.ConnectionType NONE
Copyright © 2014. All rights reserved.