public static enum NetworkInfo.DetailedState extends Enum<NetworkInfo.DetailedState>
State
instead.Enum Constant and Description |
---|
AUTHENTICATING
Network link established, performing authentication.
|
BLOCKED
Access to this network is blocked.
|
CAPTIVE_PORTAL_CHECK
Checking if network is a captive portal
|
CONNECTED
IP traffic should be available.
|
CONNECTING
Currently setting up data connection.
|
DISCONNECTED
IP traffic not available.
|
DISCONNECTING
Currently tearing down data connection.
|
FAILED
Attempt to connect failed.
|
IDLE
Ready to start data connection setup.
|
OBTAINING_IPADDR
Awaiting response from DHCP server in order to assign IP address information.
|
SCANNING
Searching for an available access point.
|
SUSPENDED
IP traffic is suspended
|
VERIFYING_POOR_LINK
Link has poor connectivity.
|
Modifier and Type | Method and Description |
---|---|
static NetworkInfo.DetailedState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetworkInfo.DetailedState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkInfo.DetailedState IDLE
public static final NetworkInfo.DetailedState SCANNING
public static final NetworkInfo.DetailedState CONNECTING
public static final NetworkInfo.DetailedState AUTHENTICATING
public static final NetworkInfo.DetailedState OBTAINING_IPADDR
public static final NetworkInfo.DetailedState CONNECTED
public static final NetworkInfo.DetailedState SUSPENDED
public static final NetworkInfo.DetailedState DISCONNECTING
public static final NetworkInfo.DetailedState DISCONNECTED
public static final NetworkInfo.DetailedState FAILED
public static final NetworkInfo.DetailedState BLOCKED
public static final NetworkInfo.DetailedState VERIFYING_POOR_LINK
public static final NetworkInfo.DetailedState CAPTIVE_PORTAL_CHECK
public static NetworkInfo.DetailedState[] values()
for (NetworkInfo.DetailedState c : NetworkInfo.DetailedState.values()) System.out.println(c);
public static NetworkInfo.DetailedState valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant
with the specified nameNullPointerException
- if the argument is null