# ConnectionStatus

public enum ConnectionStatus

连接状态枚举。

## Entries

NETWORK_UNAVAILABLE
Link copied to clipboard
NETWORK_UNAVAILABLE

网络不可用。

CONNECTED
Link copied to clipboard
CONNECTED

连接成功。

CONNECTING
Link copied to clipboard
CONNECTING

连接中。

UNCONNECTED
Link copied to clipboard
UNCONNECTED

未连接。

KICKED_OFFLINE_BY_OTHER_CLIENT
Link copied to clipboard
KICKED_OFFLINE_BY_OTHER_CLIENT

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

TOKEN_INCORRECT
Link copied to clipboard
TOKEN_INCORRECT

Token 不正确。

CONN_USER_BLOCKED
Link copied to clipboard
CONN_USER_BLOCKED

用户被开发者后台封禁

SIGN_OUT
Link copied to clipboard
SIGN_OUT

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

SUSPEND
Link copied to clipboard
SUSPEND

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

TIMEOUT
Link copied to clipboard
TIMEOUT

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

CONNECTION_STATUS_PROXY_UNAVAILABLE
Link copied to clipboard
CONNECTION_STATUS_PROXY_UNAVAILABLE
USER_ABANDON
Link copied to clipboard
USER_ABANDON

用户已销户

## Functions

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

values
Link copied to clipboard
public 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.