public static enum RtcConnection.CONNECTION_STATE_TYPE extends java.lang.Enum<RtcConnection.CONNECTION_STATE_TYPE>
| Enum Constant and Description |
|---|
CONNECTION_STATE_CONNECTED
3: The SDK is connected to Agora's edge server and has joined a channel.
|
CONNECTION_STATE_CONNECTING
2: The SDK is connecting to Agora's edge server.
|
CONNECTION_STATE_DISCONNECTED
1: The SDK is disconnected from Agora's edge server.
|
CONNECTION_STATE_FAILED
5: The SDK fails to connect to Agora's edge server or join the channel.
|
CONNECTION_STATE_NOT_INITIALIZED
0: The SDK has not been initialized.
|
CONNECTION_STATE_RECONNECTING
4: The SDK keeps rejoining the channel after being disconnected from a
joined channel because of network issues.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
getValue(RtcConnection.CONNECTION_STATE_TYPE type) |
static RtcConnection.CONNECTION_STATE_TYPE |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static RtcConnection.CONNECTION_STATE_TYPE[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final RtcConnection.CONNECTION_STATE_TYPE CONNECTION_STATE_NOT_INITIALIZED
public static final RtcConnection.CONNECTION_STATE_TYPE CONNECTION_STATE_DISCONNECTED
public static final RtcConnection.CONNECTION_STATE_TYPE CONNECTION_STATE_CONNECTING
public static final RtcConnection.CONNECTION_STATE_TYPE CONNECTION_STATE_CONNECTED
public static final RtcConnection.CONNECTION_STATE_TYPE CONNECTION_STATE_RECONNECTING
public static final RtcConnection.CONNECTION_STATE_TYPE CONNECTION_STATE_FAILED
public static RtcConnection.CONNECTION_STATE_TYPE[] values()
for (RtcConnection.CONNECTION_STATE_TYPE c : RtcConnection.CONNECTION_STATE_TYPE.values()) System.out.println(c);
public static RtcConnection.CONNECTION_STATE_TYPE 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 int getValue(RtcConnection.CONNECTION_STATE_TYPE type)