java.lang.Objectjava.lang.Enum<NetworkConnectivityListener.State>
com.netmera.mobile.NetworkConnectivityListener.State
public static enum NetworkConnectivityListener.State
Enum Constant Summary | |
---|---|
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
|
Method Summary | |
---|---|
static NetworkConnectivityListener.State |
valueOf(java.lang.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. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final NetworkConnectivityListener.State UNKNOWN
public static final NetworkConnectivityListener.State CONNECTED
public static final NetworkConnectivityListener.State NOT_CONNECTED
Method Detail |
---|
public static NetworkConnectivityListener.State[] values()
for (NetworkConnectivityListener.State c : NetworkConnectivityListener.State.values()) System.out.println(c);
public static NetworkConnectivityListener.State valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null