public static enum PMNetworkMonitor.ConnectionType extends java.lang.Enum<PMNetworkMonitor.ConnectionType>
| Enum Constant and Description |
|---|
CELLULAR_NETWORK_2G |
CELLULAR_NETWORK_3G |
CELLULAR_NETWORK_4G |
CELLULAR_NETWORK_5G |
CELLULAR_NETWORK_UN |
ETHERNET |
UNKNOWN |
WIFI |
| Modifier and Type | Method and Description |
|---|---|
int |
getValue() |
static PMNetworkMonitor.ConnectionType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PMNetworkMonitor.ConnectionType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PMNetworkMonitor.ConnectionType UNKNOWN
public static final PMNetworkMonitor.ConnectionType ETHERNET
public static final PMNetworkMonitor.ConnectionType WIFI
public static final PMNetworkMonitor.ConnectionType CELLULAR_NETWORK_UN
public static final PMNetworkMonitor.ConnectionType CELLULAR_NETWORK_2G
public static final PMNetworkMonitor.ConnectionType CELLULAR_NETWORK_3G
public static final PMNetworkMonitor.ConnectionType CELLULAR_NETWORK_4G
public static final PMNetworkMonitor.ConnectionType CELLULAR_NETWORK_5G
public static PMNetworkMonitor.ConnectionType[] values()
for (PMNetworkMonitor.ConnectionType c : PMNetworkMonitor.ConnectionType.values()) System.out.println(c);
public static PMNetworkMonitor.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 nullpublic int getValue()