LVIMEventCallback class

Constructors

LVIMEventCallback()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onEventMessageReceive(dynamic msg) → void
收到IM事件类型消息 @param msg 收到的消息模型
onIMAuthFailed(String uid, String token, int eCode, int rCode, bool isTokenExpired) → void
认证失败事件 @param uid 用户ID @param token IM的token @param eCode 错误码 @param rCode 响应码 @param isTokenExpired 是否过期了
onIMAuthSucceed(String uid, String token, int unReadMsgSize) → void
认证成功事件 @param uid 用户ID @param token IM的token @param unReadMsgSize 未读消息数量(粗略)
onIMConnected() → void
连接成功事件
onIMConnectState(int connectState) → void
即时通讯连接状态回调 @param connectState 连接状态
onIMLosted() → void
连接断开事件
onIMMessageReaded(int msgId) → void
已读回执通知 @param msgid 消息ID
onIMMessageReadedForStime(String sessionid, int stime) → void
根据时间戳设置的已读回执通知 @param sessionid 会话ID,私聊时为对方的uid,群组时为群组id @param stime 时间戳
onIMMessageReceive(dynamic msg) → void
收到IM消息 @param msg 收到的消息模型
onIMSendMessageReceive(int eCode, int rCode, dynamic msg) → void
发送IM消息回调 @param eCode 客户端状态码,0为成功,非0为失败 @param rCode 服务器状态码,0为成功,非0为失败 @param msg 收到的消息模型
onIMTokenExpired(String uid, String token) → void
认证成功事件 @param uid 用户ID @param token IM的token @param owner 所属者
onIMUserKicked(String uid, int code) → void
用户被封禁回调 @param uid 用户ID @param code 错误码
onQueryIMToken() → void
请求token的事件,从自己的服务端请求到IM的token之后,调用RtmFlutterPlugin.setIMToken
onReadMessageReceive(dynamic msg, int stime) → void
收到已读类型IM消息 @param msg 收到的消息模型 @param stime 时间戳,所有<=stime的消息都应该更新为已读
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited