public abstract class LCIMConversationEventHandler extends LCIMEventHandler
Constructor and Description |
---|
LCIMConversationEventHandler() |
Modifier and Type | Method and Description |
---|---|
void |
onBlocked(LCIMClient client,
LCIMConversation conversation,
String operator)
当前用户被加入黑名单通知处理函数
|
void |
onInfoChanged(LCIMClient client,
LCIMConversation conversation,
JSONObject attr,
String operator)
对话自身属性变更通知
|
abstract void |
onInvited(LCIMClient client,
LCIMConversation conversation,
String operator)
实现本方法来处理当前用户被邀请到某个聊天对话事件
|
abstract void |
onKicked(LCIMClient client,
LCIMConversation conversation,
String kickedBy)
实现本方法来处理当前用户被踢出某个聊天对话事件
|
void |
onLastDeliveredAtUpdated(LCIMClient client,
LCIMConversation conversation)
实现本地方法来处理对方已经接收消息的通知
|
void |
onLastReadAtUpdated(LCIMClient client,
LCIMConversation conversation)
实现本地方法来处理对方已经阅读消息的通知
|
void |
onMemberBlocked(LCIMClient client,
LCIMConversation conversation,
List<String> members,
String operator)
聊天室成员被加入黑名单通知处理函数
|
void |
onMemberInfoUpdated(LCIMClient client,
LCIMConversation conversation,
LCIMConversationMemberInfo memberInfo,
List<String> updatedProperties,
String operator)
对话成员信息变更通知。
常见的有:某成员权限发生变化(如,被设为管理员等)。
|
abstract void |
onMemberJoined(LCIMClient client,
LCIMConversation conversation,
List<String> members,
String invitedBy)
实现本方法以处理聊天对话中的参与者加入事件
|
abstract void |
onMemberLeft(LCIMClient client,
LCIMConversation conversation,
List<String> members,
String kickedBy)
实现本方法以处理聊天对话中的参与者离开事件
|
void |
onMemberMuted(LCIMClient client,
LCIMConversation conversation,
List<String> members,
String operator)
聊天室成员被禁言通知处理函数
|
void |
onMemberUnblocked(LCIMClient client,
LCIMConversation conversation,
List<String> members,
String operator)
聊天室成员被移出黑名单通知处理函数
|
void |
onMemberUnmuted(LCIMClient client,
LCIMConversation conversation,
List<String> members,
String operator)
聊天室成员被解除禁言通知处理函数
|
void |
onMessageRecalled(LCIMClient client,
LCIMConversation conversation,
LCIMMessage message)
实现本地方法来处理消息的撤回事件
|
void |
onMessageUpdated(LCIMClient client,
LCIMConversation conversation,
LCIMMessage message)
实现本地方法来处理消息的更新事件
|
void |
onMuted(LCIMClient client,
LCIMConversation conversation,
String operator)
当前用户被禁言通知处理函数
|
void |
onUnblocked(LCIMClient client,
LCIMConversation conversation,
String operator)
当前用户被移出黑名单通知处理函数
|
void |
onUnmuted(LCIMClient client,
LCIMConversation conversation,
String operator)
当前用户被解除禁言通知处理函数
|
void |
onUnreadMessagesCountUpdated(LCIMClient client,
LCIMConversation conversation)
实现本地方法来处理未读消息数量的通知
|
protected void |
processEvent0(int operation,
Object operator,
Object operand,
Object eventScene) |
processEvent
protected static final LCLogger LOGGER
public abstract void onMemberLeft(LCIMClient client, LCIMConversation conversation, List<String> members, String kickedBy)
client
- client instanceconversation
- conversation instance.members
- 离开的参与者kickedBy
- 离开事件的发动者,有可能是离开的参与者本身public abstract void onMemberJoined(LCIMClient client, LCIMConversation conversation, List<String> members, String invitedBy)
client
- client instanceconversation
- conversation instance.members
- 加入的参与者invitedBy
- 加入事件的邀请人,有可能是加入的参与者本身public abstract void onKicked(LCIMClient client, LCIMConversation conversation, String kickedBy)
client
- client instanceconversation
- conversation instance.kickedBy
- 踢出你的人public abstract void onInvited(LCIMClient client, LCIMConversation conversation, String operator)
client
- client instanceconversation
- 被邀请的聊天对话operator
- 邀请你的人public void onMuted(LCIMClient client, LCIMConversation conversation, String operator)
client
- 聊天客户端conversation
- 对话operator
- 操作者 idpublic void onUnmuted(LCIMClient client, LCIMConversation conversation, String operator)
client
- 聊天客户端conversation
- 对话operator
- 操作者 idpublic void onMemberMuted(LCIMClient client, LCIMConversation conversation, List<String> members, String operator)
client
- 聊天客户端conversation
- 对话members
- 成员列表operator
- 操作者 idpublic void onMemberUnmuted(LCIMClient client, LCIMConversation conversation, List<String> members, String operator)
client
- 聊天客户端conversation
- 对话members
- 成员列表operator
- 操作者 idpublic void onBlocked(LCIMClient client, LCIMConversation conversation, String operator)
client
- 聊天客户端conversation
- 对话operator
- 操作者 idpublic void onUnblocked(LCIMClient client, LCIMConversation conversation, String operator)
client
- 聊天客户端conversation
- 对话operator
- 操作者 idpublic void onMemberBlocked(LCIMClient client, LCIMConversation conversation, List<String> members, String operator)
client
- 聊天客户端conversation
- 对话members
- 成员列表operator
- 操作者 idpublic void onMemberUnblocked(LCIMClient client, LCIMConversation conversation, List<String> members, String operator)
client
- 聊天客户端conversation
- 对话members
- 成员列表operator
- 操作者 idpublic void onUnreadMessagesCountUpdated(LCIMClient client, LCIMConversation conversation)
client
- client instanceconversation
- current conversation.public void onLastDeliveredAtUpdated(LCIMClient client, LCIMConversation conversation)
client
- client instanceconversation
- current conversation.public void onLastReadAtUpdated(LCIMClient client, LCIMConversation conversation)
client
- client instanceconversation
- current conversation.public void onMessageUpdated(LCIMClient client, LCIMConversation conversation, LCIMMessage message)
client
- client instanceconversation
- current conversation.message
- messgae instance.public void onMessageRecalled(LCIMClient client, LCIMConversation conversation, LCIMMessage message)
client
- client instanceconversation
- current conversation.message
- message instance.public void onMemberInfoUpdated(LCIMClient client, LCIMConversation conversation, LCIMConversationMemberInfo memberInfo, List<String> updatedProperties, String operator)
client
- 通知关联的 IMClientconversation
- 通知关联的对话memberInfo
- 变更后的成员信息updatedProperties
- 发生变更的属性列表(当前固定为 "role")operator
- 操作者 idpublic void onInfoChanged(LCIMClient client, LCIMConversation conversation, JSONObject attr, String operator)
client
- client instanceconversation
- current conversation.attr
- optional attributes.operator
- operator client id.protected final void processEvent0(int operation, Object operator, Object operand, Object eventScene)
processEvent0
in class LCIMEventHandler
Copyright © 2020, 美味书签(北京)信息技术有限公司 All rights reserved.