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

The user account has logged in on another device, and this device will be kicked offline.

Link copied to clipboard

Invalid Token.

Link copied to clipboard

The user is banned by the developer backend.

Link copied to clipboard

User actively calls the disconnect or logout API to terminate the connection.

Link copied to clipboard

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

Link copied to clipboard

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.

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.