Package io.agora.rtm
Enum Class RtmConstants.RtmLinkStateChangeReason
java.lang.Object
java.lang.Enum<RtmConstants.RtmLinkStateChangeReason>
io.agora.rtm.RtmConstants.RtmLinkStateChangeReason
- All Implemented Interfaces:
Serializable,Comparable<RtmConstants.RtmLinkStateChangeReason>,Constable
- Enclosing class:
- RtmConstants
public static enum RtmConstants.RtmLinkStateChangeReason
extends Enum<RtmConstants.RtmLinkStateChangeReason>
Rtm link state change reason.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription8: Auto reconnect.25: Channel in error state.23: Channel instance exceed limitation.30: Connection error.18: Inconsistent app ID.19: Invalid channel name.16: Invalid token.20: Invalid user ID.11: Join.13: Join failed.12: Join success.29: Keep alive timeout.28: Kicked out by server.15: Leave.36: Lock not available.1: Login.4: Login not authorized.5: Login rejected.2: Login success.3: Login timeout.37: Login too frequent.7: Logout.32: Network change.21: Not initialized.24: Operation rate exceed limitation.26: Presence not connected.31: Presence not ready.10: Reconnect success.9: Reconnect timeout.14: Rejoin.6: Re-login.22: Rtm service not connected.27: Same UID login.33: Service not supported.35: storage not available.34: Stream channel not available.17: Token expired.0: Unknown reason. -
Method Summary
Modifier and TypeMethodDescriptionstatic intReturns the enum constant of this class with the specified name.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
-
UNKNOWN
0: Unknown reason. -
LOGIN
1: Login. -
LOGIN_SUCCESS
2: Login success. -
LOGIN_TIMEOUT
3: Login timeout. -
LOGIN_NOT_AUTHORIZED
4: Login not authorized. -
LOGIN_REJECTED
5: Login rejected. -
RELOGIN
6: Re-login. -
LOGOUT
7: Logout. -
AUTO_RECONNECT
8: Auto reconnect. -
RECONNECT_TIMEOUT
9: Reconnect timeout. -
RECONNECT_SUCCESS
10: Reconnect success. -
JOIN
11: Join. -
JOIN_SUCCESS
12: Join success. -
JOIN_FAILED
13: Join failed. -
REJOIN
14: Rejoin. -
LEAVE
15: Leave. -
INVALID_TOKEN
16: Invalid token. -
TOKEN_EXPIRED
17: Token expired. -
INCONSISTENT_APP_ID
18: Inconsistent app ID. -
INVALID_CHANNEL_NAME
19: Invalid channel name. -
INVALID_USER_ID
20: Invalid user ID. -
NOT_INITIALIZED
21: Not initialized. -
RTM_SERVICE_NOT_CONNECTED
22: Rtm service not connected. -
CHANNEL_INSTANCE_EXCEED_LIMITATION
23: Channel instance exceed limitation. -
OPERATION_RATE_EXCEED_LIMITATION
24: Operation rate exceed limitation. -
CHANNEL_IN_ERROR_STATE
25: Channel in error state. -
PRESENCE_NOT_CONNECTED
26: Presence not connected. -
SAME_UID_LOGIN
27: Same UID login. -
KICKED_OUT_BY_SERVER
28: Kicked out by server. -
KEEP_ALIVE_TIMEOUT
29: Keep alive timeout. -
CONNECTION_ERROR
30: Connection error. -
PRESENCE_NOT_READY
31: Presence not ready. -
NETWORK_CHANGE
32: Network change. -
SERVICE_NOT_SUPPORTED
33: Service not supported. -
STREAM_CHANNEL_NOT_AVAILABLE
34: Stream channel not available. -
STORAGE_NOT_AVAILABLE
35: storage not available. -
LOCK_NOT_AVAILABLE
36: Lock not available. -
LOGIN_TOO_FREQUENT
37: Login too frequent.
-
-
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
-