public interface ConversationEventListener
| Modifier and Type | Method and Description |
|---|---|
void |
onClearConversations(Conversation.ConversationType... conversationTypes)
清除某类会话。
|
void |
onClearedMessage(Conversation.ConversationType type,
java.lang.String targetId)
根据会话类型,清空某一会话的所有聊天消息记录,回调此方法。
|
void |
onClearedUnreadStatus(Conversation.ConversationType type,
java.lang.String targetId)
清除某会话的所有消息未读状态时,回调此方法。
|
void |
onConversationRemoved(Conversation.ConversationType type,
java.lang.String targetId)
从会话列表删除某会话时的回调。
|
void |
onOperationFailed(RongIMClient.ErrorCode code)
操作失败的回调。
|
void |
onSaveDraft(Conversation.ConversationType type,
java.lang.String targetId,
java.lang.String content)
会话里保存草稿时,回调此方法
|
void onSaveDraft(Conversation.ConversationType type,
java.lang.String targetId,
java.lang.String content)
type - 会话类型targetId - 会话 Idcontent - 草稿内容void onClearedMessage(Conversation.ConversationType type,
java.lang.String targetId)
type - 会话类型。不支持传入 ConversationType.CHATROOM。targetId - 目标 Id。根据不同的 conversationType,可能是用户 Id、讨论组 Id、群组 Id。void onClearedUnreadStatus(Conversation.ConversationType type,
java.lang.String targetId)
type - 会话类型。不支持传入 ConversationType.CHATROOM。targetId - 目标 Id。根据不同的 conversationType,可能是用户 Id、讨论组 Id、群组 Id。void onConversationRemoved(Conversation.ConversationType type,
java.lang.String targetId)
type - 会话类型targetId - 会话 Idvoid onOperationFailed(RongIMClient.ErrorCode code)
code - void onClearConversations(Conversation.ConversationType... conversationTypes)
conversationTypes - 会话类型。