public static enum NetworkConnectivityListener.State extends Enum<NetworkConnectivityListener.State>
Enum Constant and Description |
---|
CONNECTED
This state is returned if there is connectivity to any network
|
NOT_CONNECTED
This state is returned if there is no connectivity to any network.
|
UNKNOWN |
Modifier and Type | Method and Description |
---|---|
static NetworkConnectivityListener.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static NetworkConnectivityListener.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkConnectivityListener.State UNKNOWN
public static final NetworkConnectivityListener.State CONNECTED
public static final NetworkConnectivityListener.State NOT_CONNECTED
public static NetworkConnectivityListener.State[] values()
for (NetworkConnectivityListener.State c : NetworkConnectivityListener.State.values()) System.out.println(c);
public static NetworkConnectivityListener.State 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