Enum RongIMClient.ConnectionStatusListener.ConnectionStatus
-
- All Implemented Interfaces:
public enum RongIMClient.ConnectionStatusListener.ConnectionStatusConnection status enumeration.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NETWORK_UNAVAILABLENetwork unavailable.
CONNECTEDConnection established.
CONNECTINGConnecting.
UNCONNECTEDNot connected.
KICKED_OFFLINE_BY_OTHER_CLIENTUser account logged in on another device, this device will be kicked offline.
TOKEN_INCORRECT*Token is invalid.**
CONN_USER_BLOCKEDUser banned by the developer backend
SIGN_OUTThe user actively calls the disconnect or logout interface to disconnect.
SUSPENDThe connection is temporarily suspended (usually due to network issues), and the SDK will automatically reconnect at an appropriate time.
TIMEOUTThe automatic connection has timed out. The SDK will not continue to attempt the connection. The user needs to handle the timeout situation and then call the connectWithToken interface to initiate the connection on their own.
CONNECTION_STATUS_PROXY_UNAVAILABLEUSER_LOGOUTThe user account has been deactivated.
-
Method Summary
Modifier and Type Method Description static RongIMClient.ConnectionStatusListener.ConnectionStatusvalueOf(int code)intgetValue()Retrieves the status code value. StringgetMessage()Retrieves the status message. static Array<RongIMClient.ConnectionStatusListener.ConnectionStatus>values()Returns an array containing the constants of this enum type, in the order they're declared. static RongIMClient.ConnectionStatusListener.ConnectionStatusvalueOf(String name)Returns the enum constant of this type with the specified name. -
-
Method Detail
-
valueOf
static RongIMClient.ConnectionStatusListener.ConnectionStatus valueOf(int code)
-
getValue
int getValue()
Retrieves the status code value.
- Returns:
The status code value.
-
getMessage
String getMessage()
Retrieves the status message.
- Returns:
The status message.
-
values
static Array<RongIMClient.ConnectionStatusListener.ConnectionStatus> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static RongIMClient.ConnectionStatusListener.ConnectionStatus valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
- Returns:
the enum constant with the specified name
-
-
-
-