Package io.agora.rtc2
Enum Class RtcConnection.CONNECTION_STATE_TYPE
java.lang.Object
java.lang.Enum<RtcConnection.CONNECTION_STATE_TYPE>
io.agora.rtc2.RtcConnection.CONNECTION_STATE_TYPE
- All Implemented Interfaces:
Serializable,Comparable<RtcConnection.CONNECTION_STATE_TYPE>,Constable
- Enclosing class:
- RtcConnection
public static enum RtcConnection.CONNECTION_STATE_TYPE
extends Enum<RtcConnection.CONNECTION_STATE_TYPE>
Connection state types.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription3: The SDK is connected to Agora's edge server and has joined a channel.2: The SDK is connecting to Agora's edge server.1: The SDK is disconnected from Agora's edge server.5: The SDK fails to connect to Agora's edge server or join the channel.0: The SDK has not been initialized.4: The SDK keeps rejoining the channel after being disconnected from a joined channel because of network issues. -
Method Summary
Modifier and TypeMethodDescriptionstatic intReturns the enum constant of this class with the specified name.static RtcConnection.CONNECTION_STATE_TYPE[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
CONNECTION_STATE_NOT_INITIALIZED
0: The SDK has not been initialized. -
CONNECTION_STATE_DISCONNECTED
1: The SDK is disconnected from Agora's edge server. -
CONNECTION_STATE_CONNECTING
2: The SDK is connecting to Agora's edge server. -
CONNECTION_STATE_CONNECTED
3: The SDK is connected to Agora's edge server and has joined a channel. You can now publish or subscribe to a media stream in the channel. -
CONNECTION_STATE_RECONNECTING
4: The SDK keeps rejoining the channel after being disconnected from a joined channel because of network issues. -
CONNECTION_STATE_FAILED
5: The SDK fails to connect to Agora's edge server or join the channel.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
-