hyphenate_SDK4.0 4.26.0
hyphenate java IM SDK
载入中...
搜索中...
未找到
静态 Public 成员函数 | Public 属性 | 所有成员列表
com.hyphenate.chat.EMConnectionState 枚举类型参考

静态 Public 成员函数

static EMConnectionState fromNative (int nativeState)
 

Public 属性

 DISCONNECTED
 
 CONNECTING
 
 CONNECTED
 

详细描述

SDK 的连接状态,由 EMClient#getConnectionState() 返回。

成员函数说明

◆ fromNative()

static EMConnectionState com.hyphenate.chat.EMConnectionState.fromNative ( int nativeState)
static

将底层 native 连接状态值映射为 EMConnectionState; 未知或越界值回落为 DISCONNECTED。

类成员变量说明

◆ CONNECTED

com.hyphenate.chat.EMConnectionState.CONNECTED

已连接:可以正常收发消息。

◆ CONNECTING

com.hyphenate.chat.EMConnectionState.CONNECTING

正在连接:SDK 正在建立连接。

◆ DISCONNECTED

com.hyphenate.chat.EMConnectionState.DISCONNECTED

未连接:SDK 未初始化、已登出或连接已断开。


枚举说明文档从下列文件生成: