ConnectionStatus

public enum ConnectionStatus

Connection status enumeration.

Entries

Link copied to clipboard

Network unavailable.

Link copied to clipboard

Connection established.

Link copied to clipboard

Connecting.

Link copied to clipboard

Not connected.

Link copied to clipboard

User account logged in on another device, this device will be kicked offline.

Link copied to clipboard

*Token is invalid.**

Link copied to clipboard

User banned by the developer backend

Link copied to clipboard

The user actively calls the disconnect or logout interface to disconnect.

Link copied to clipboard

The connection is temporarily suspended (usually due to network issues), and the SDK will automatically reconnect at an appropriate time.

Link copied to clipboard

The 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.

Link copied to clipboard

The user account has been deactivated.

Functions

Link copied to clipboard
public String getMessage()
Retrieves the status message.
Link copied to clipboard
public int getValue()
Retrieves the status code value.
Link copied to clipboard

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.)

Link copied to clipboard

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.