public enum IceState extends java.lang.Enum<IceState>
Enum Constant | Description |
---|---|
Failed |
ICE processing has failed.
|
HostConnection |
ICE has established a direct connection to the remote host.
|
InProgress |
ICE process is in progress.
|
NotActivated |
ICE has not been activated for this call or stream.
|
ReflexiveConnection |
ICE has established a connection to the remote host through one or several
NATs. |
RelayConnection |
ICE has established a connection through a relay.
|
Modifier and Type | Field | Description |
---|---|---|
protected int |
mValue |
Modifier and Type | Method | Description |
---|---|---|
static IceState |
fromInt(int value) |
|
protected static IceState[] |
fromIntArray(int[] values) |
|
int |
toInt() |
|
protected static int[] |
toIntArray(IceState[] values) |
|
static IceState |
valueOf(java.lang.String name) |
Returns the enum constant of this type with the specified name.
|
static IceState[] |
values() |
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final IceState NotActivated
public static final IceState Failed
public static final IceState InProgress
public static final IceState HostConnection
public static final IceState ReflexiveConnection
public static final IceState RelayConnection
public static IceState[] values()
for (IceState c : IceState.values()) System.out.println(c);
public static IceState 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 static IceState fromInt(int value) throws java.lang.RuntimeException
java.lang.RuntimeException
protected static IceState[] fromIntArray(int[] values) throws java.lang.RuntimeException
java.lang.RuntimeException
protected static int[] toIntArray(IceState[] values) throws java.lang.RuntimeException
java.lang.RuntimeException
public int toInt()