ConnectionStatus

public enum ConnectionStatus

连接状态枚举。

Entries

Link copied to clipboard

网络不可用。

Link copied to clipboard

连接成功。

Link copied to clipboard

连接中。

Link copied to clipboard

未连接。

Link copied to clipboard

用户账户在其他设备登录,本机会被踢掉线。

Link copied to clipboard

Token 不正确。

Link copied to clipboard

用户被开发者后台封禁

Link copied to clipboard

用户主动调用 disconnect 或 logout 接口断开连接

Link copied to clipboard

连接暂时挂起(多是由于网络问题导致),SDK 会在合适时机进行自动重连

Link copied to clipboard

自动连接超时,SDK 将不会继续连接,用户需要做超时处理,再自行调用 connectWithToken 接口进行连接

Link copied to clipboard

用户已销户

Functions

Link copied to clipboard
public String getMessage()
获取状态消息。
Link copied to clipboard
public int getValue()
获取状态代码值。
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.