public abstract class AVIMConversationEventHandler extends AVIMEventHandler
| 限定符和类型 | 字段和说明 |
|---|---|
protected static cn.leancloud.AVLogger |
LOGGER |
| 构造器和说明 |
|---|
AVIMConversationEventHandler() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
onBlocked(AVIMClient client,
AVIMConversation conversation,
String operator)
当前用户被加入黑名单通知处理函数
|
void |
onInfoChanged(AVIMClient client,
AVIMConversation conversation,
com.alibaba.fastjson.JSONObject attr,
String operator)
对话自身属性变更通知
|
abstract void |
onInvited(AVIMClient client,
AVIMConversation conversation,
String operator)
实现本方法来处理当前用户被邀请到某个聊天对话事件
|
abstract void |
onKicked(AVIMClient client,
AVIMConversation conversation,
String kickedBy)
实现本方法来处理当前用户被踢出某个聊天对话事件
|
void |
onLastDeliveredAtUpdated(AVIMClient client,
AVIMConversation conversation)
实现本地方法来处理对方已经接收消息的通知
|
void |
onLastReadAtUpdated(AVIMClient client,
AVIMConversation conversation)
实现本地方法来处理对方已经阅读消息的通知
|
void |
onMemberBlocked(AVIMClient client,
AVIMConversation conversation,
List<String> members,
String operator)
聊天室成员被加入黑名单通知处理函数
|
void |
onMemberInfoUpdated(AVIMClient client,
AVIMConversation conversation,
AVIMConversationMemberInfo memberInfo,
List<String> updatedProperties,
String operator)
对话成员信息变更通知。
|
abstract void |
onMemberJoined(AVIMClient client,
AVIMConversation conversation,
List<String> members,
String invitedBy)
实现本方法以处理聊天对话中的参与者加入事件
|
abstract void |
onMemberLeft(AVIMClient client,
AVIMConversation conversation,
List<String> members,
String kickedBy)
实现本方法以处理聊天对话中的参与者离开事件
|
void |
onMemberMuted(AVIMClient client,
AVIMConversation conversation,
List<String> members,
String operator)
聊天室成员被禁言通知处理函数
|
void |
onMemberUnblocked(AVIMClient client,
AVIMConversation conversation,
List<String> members,
String operator)
聊天室成员被移出黑名单通知处理函数
|
void |
onMemberUnmuted(AVIMClient client,
AVIMConversation conversation,
List<String> members,
String operator)
聊天室成员被解除禁言通知处理函数
|
void |
onMessageRecalled(AVIMClient client,
AVIMConversation conversation,
AVIMMessage message)
实现本地方法来处理消息的撤回事件
|
void |
onMessageUpdated(AVIMClient client,
AVIMConversation conversation,
AVIMMessage message)
实现本地方法来处理消息的更新事件
|
void |
onMuted(AVIMClient client,
AVIMConversation conversation,
String operator)
当前用户被禁言通知处理函数
|
void |
onUnblocked(AVIMClient client,
AVIMConversation conversation,
String operator)
当前用户被移出黑名单通知处理函数
|
void |
onUnmuted(AVIMClient client,
AVIMConversation conversation,
String operator)
当前用户被解除禁言通知处理函数
|
void |
onUnreadMessagesCountUpdated(AVIMClient client,
AVIMConversation conversation)
实现本地方法来处理未读消息数量的通知
|
protected void |
processEvent0(int operation,
Object operator,
Object operand,
Object eventScene) |
processEventpublic abstract void onMemberLeft(AVIMClient client, AVIMConversation conversation, List<String> members, String kickedBy)
client - conversation - members - 离开的参与者kickedBy - 离开事件的发动者,有可能是离开的参与者本身public abstract void onMemberJoined(AVIMClient client, AVIMConversation conversation, List<String> members, String invitedBy)
client - conversation - members - 加入的参与者invitedBy - 加入事件的邀请人,有可能是加入的参与者本身public abstract void onKicked(AVIMClient client, AVIMConversation conversation, String kickedBy)
client - conversation - kickedBy - 踢出你的人public abstract void onInvited(AVIMClient client, AVIMConversation conversation, String operator)
client - conversation - 被邀请的聊天对话operator - 邀请你的人public void onMuted(AVIMClient client, AVIMConversation conversation, String operator)
client - 聊天客户端conversation - 对话operator - 操作者 idpublic void onUnmuted(AVIMClient client, AVIMConversation conversation, String operator)
client - 聊天客户端conversation - 对话operator - 操作者 idpublic void onMemberMuted(AVIMClient client, AVIMConversation conversation, List<String> members, String operator)
client - 聊天客户端conversation - 对话members - 成员列表operator - 操作者 idpublic void onMemberUnmuted(AVIMClient client, AVIMConversation conversation, List<String> members, String operator)
client - 聊天客户端conversation - 对话members - 成员列表operator - 操作者 idpublic void onBlocked(AVIMClient client, AVIMConversation conversation, String operator)
client - 聊天客户端conversation - 对话operator - 操作者 idpublic void onUnblocked(AVIMClient client, AVIMConversation conversation, String operator)
client - 聊天客户端conversation - 对话operator - 操作者 idpublic void onMemberBlocked(AVIMClient client, AVIMConversation conversation, List<String> members, String operator)
client - 聊天客户端conversation - 对话members - 成员列表operator - 操作者 idpublic void onMemberUnblocked(AVIMClient client, AVIMConversation conversation, List<String> members, String operator)
client - 聊天客户端conversation - 对话members - 成员列表operator - 操作者 idpublic void onUnreadMessagesCountUpdated(AVIMClient client, AVIMConversation conversation)
client - conversation - public void onLastDeliveredAtUpdated(AVIMClient client, AVIMConversation conversation)
public void onLastReadAtUpdated(AVIMClient client, AVIMConversation conversation)
public void onMessageUpdated(AVIMClient client, AVIMConversation conversation, AVIMMessage message)
client - conversation - message - public void onMessageRecalled(AVIMClient client, AVIMConversation conversation, AVIMMessage message)
client - conversation - message - public void onMemberInfoUpdated(AVIMClient client, AVIMConversation conversation, AVIMConversationMemberInfo memberInfo, List<String> updatedProperties, String operator)
client - 通知关联的 AVIMClientconversation - 通知关联的对话memberInfo - 变更后的成员信息updatedProperties - 发生变更的属性列表(当前固定为 "role")operator - 操作者 idpublic void onInfoChanged(AVIMClient client, AVIMConversation conversation, com.alibaba.fastjson.JSONObject attr, String operator)
client - conversation - attr - operator - protected final void processEvent0(int operation,
Object operator,
Object operand,
Object eventScene)
processEvent0 在类中 AVIMEventHandlerCopyright © 2018. All rights reserved.