Enum IRongCoreListener.ConnectionStatusListener.ConnectionStatus
-
- All Implemented Interfaces:
public enum IRongCoreListener.ConnectionStatusListener.ConnectionStatus
Connection status enumeration.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NETWORK_UNAVAILABLE
Network unavailable.
CONNECTED
Connection established.
CONNECTING
Connecting.
UNCONNECTED
Not connected.
KICKED_OFFLINE_BY_OTHER_CLIENT
The user account has logged in on another device, and this device will be kicked offline.
TOKEN_INCORRECT
Invalid Token.
CONN_USER_BLOCKED
The user is banned by the developer backend.
SIGN_OUT
User actively calls the disconnect or logout API to terminate the connection.
SUSPEND
The connection is temporarily suspended (usually due to network issues). The SDK will automatically reconnect at an appropriate time.
TIMEOUT
The SDK will not continue to connect after the automatic connection timeout. The user needs to handle the timeout and manually call the `connectWithToken` interface to reconnect.
CONNECTION_STATUS_PROXY_UNAVAILABLE
USER_ABANDON
The user account has been deactivated.
-
Method Summary
Modifier and Type Method Description static IRongCoreListener.ConnectionStatusListener.ConnectionStatus
valueOf(int code)
int
getValue()
Retrieves the status code value. String
getMessage()
Retrieves the status message. static Array<IRongCoreListener.ConnectionStatusListener.ConnectionStatus>
values()
Returns an array containing the constants of this enum type, in the order they're declared. static IRongCoreListener.ConnectionStatusListener.ConnectionStatus
valueOf(String name)
Returns the enum constant of this type with the specified name. -
-
Method Detail
-
valueOf
static IRongCoreListener.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<IRongCoreListener.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 IRongCoreListener.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
-
-
-
-