Package io.agora.rtm
Enum Class RtmConstants.RtmLinkState
- All Implemented Interfaces:
Serializable,Comparable<RtmConstants.RtmLinkState>,Constable
- Enclosing class:
- RtmConstants
Rtm link state.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription2: The SDK has connected to the server.1: The SDK is connecting to the server.3: The SDK is disconnected from the server.5: The SDK is failed to connect to the server.0: The initial state.4: The SDK link is suspended. -
Method Summary
Modifier and TypeMethodDescriptionstatic RtmConstants.RtmLinkStategetEnum(int value) static intstatic RtmConstants.RtmLinkStateReturns the enum constant of this class with the specified name.static RtmConstants.RtmLinkState[]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
-
IDLE
0: The initial state. -
CONNECTING
1: The SDK is connecting to the server. -
CONNECTED
2: The SDK has connected to the server. -
DISCONNECTED
3: The SDK is disconnected from the server. -
SUSPENDED
4: The SDK link is suspended. -
FAILED
5: The SDK is failed to connect to the server.
-
-
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
-
getEnum
-