Package tvi.webrtc
Enum NetworkChangeDetector.ConnectionType
- java.lang.Object
-
- java.lang.Enum<NetworkChangeDetector.ConnectionType>
-
- tvi.webrtc.NetworkChangeDetector.ConnectionType
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<NetworkChangeDetector.ConnectionType>
- Enclosing interface:
- NetworkChangeDetector
public static enum NetworkChangeDetector.ConnectionType extends java.lang.Enum<NetworkChangeDetector.ConnectionType>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CONNECTION_2G
CONNECTION_3G
CONNECTION_4G
CONNECTION_5G
CONNECTION_BLUETOOTH
CONNECTION_ETHERNET
CONNECTION_NONE
CONNECTION_UNKNOWN
CONNECTION_UNKNOWN_CELLULAR
CONNECTION_VPN
CONNECTION_WIFI
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Enum Constant Detail
-
CONNECTION_UNKNOWN
public static final NetworkChangeDetector.ConnectionType CONNECTION_UNKNOWN
-
CONNECTION_ETHERNET
public static final NetworkChangeDetector.ConnectionType CONNECTION_ETHERNET
-
CONNECTION_WIFI
public static final NetworkChangeDetector.ConnectionType CONNECTION_WIFI
-
CONNECTION_5G
public static final NetworkChangeDetector.ConnectionType CONNECTION_5G
-
CONNECTION_4G
public static final NetworkChangeDetector.ConnectionType CONNECTION_4G
-
CONNECTION_3G
public static final NetworkChangeDetector.ConnectionType CONNECTION_3G
-
CONNECTION_2G
public static final NetworkChangeDetector.ConnectionType CONNECTION_2G
-
CONNECTION_UNKNOWN_CELLULAR
public static final NetworkChangeDetector.ConnectionType CONNECTION_UNKNOWN_CELLULAR
-
CONNECTION_BLUETOOTH
public static final NetworkChangeDetector.ConnectionType CONNECTION_BLUETOOTH
-
CONNECTION_VPN
public static final NetworkChangeDetector.ConnectionType CONNECTION_VPN
-
CONNECTION_NONE
public static final NetworkChangeDetector.ConnectionType CONNECTION_NONE
-
-
Method Detail
-
values
public static NetworkChangeDetector.ConnectionType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (NetworkChangeDetector.ConnectionType c : NetworkChangeDetector.ConnectionType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static NetworkChangeDetector.ConnectionType valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
-