public static enum NetworkChangeDetector.ConnectionType extends java.lang.Enum<NetworkChangeDetector.ConnectionType>
Enum Constant and Description |
---|
CONNECTION_2G |
CONNECTION_3G |
CONNECTION_4G |
CONNECTION_5G |
CONNECTION_BLUETOOTH |
CONNECTION_ETHERNET |
CONNECTION_NONE |
CONNECTION_UNKNOWN |
CONNECTION_UNKNOWN_CELLULAR |
CONNECTION_VPN |
CONNECTION_WIFI |
Modifier and Type | Method and Description |
---|---|
static NetworkChangeDetector.ConnectionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static NetworkChangeDetector.ConnectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final NetworkChangeDetector.ConnectionType CONNECTION_UNKNOWN
public static final NetworkChangeDetector.ConnectionType CONNECTION_ETHERNET
public static final NetworkChangeDetector.ConnectionType CONNECTION_WIFI
public static final NetworkChangeDetector.ConnectionType CONNECTION_5G
public static final NetworkChangeDetector.ConnectionType CONNECTION_4G
public static final NetworkChangeDetector.ConnectionType CONNECTION_3G
public static final NetworkChangeDetector.ConnectionType CONNECTION_2G
public static final NetworkChangeDetector.ConnectionType CONNECTION_UNKNOWN_CELLULAR
public static final NetworkChangeDetector.ConnectionType CONNECTION_BLUETOOTH
public static final NetworkChangeDetector.ConnectionType CONNECTION_VPN
public static final NetworkChangeDetector.ConnectionType CONNECTION_NONE
public static NetworkChangeDetector.ConnectionType[] values()
for (NetworkChangeDetector.ConnectionType c : NetworkChangeDetector.ConnectionType.values()) System.out.println(c);
public static NetworkChangeDetector.ConnectionType 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 namejava.lang.NullPointerException
- if the argument is null7.0.0