Package io.rong.imkit
Class BaseConversationEventListener
-
- All Implemented Interfaces:
-
io.rong.imkit.ConversationEventListener
public abstract class BaseConversationEventListener implements ConversationEventListener
-
-
Constructor Summary
Constructors Constructor Description BaseConversationEventListener()
-
Method Summary
Modifier and Type Method Description voidonSaveDraft(Conversation.ConversationType type, String targetId, String content)会话里保存草稿时,回调此方法 voidonClearedMessage(Conversation.ConversationType type, String targetId)根据会话类型,清空某一会话的所有聊天消息记录,回调此方法。 voidonClearedUnreadStatus(Conversation.ConversationType type, String targetId)清除某会话的所有消息未读状态时,回调此方法。 voidonConversationRemoved(Conversation.ConversationType type, String targetId)从会话列表删除某会话时的回调。 voidonOperationFailed(RongIMClient.ErrorCode code)操作失败的回调。 voidonClearConversations(Array<Conversation.ConversationType> conversationTypes)清除某类会话。 -
Methods inherited from class io.rong.imkit.ConversationEventListener
onChannelChange, onChannelDelete, onChannelKicked, onClearedMessage, onClearedUnreadStatus, onMessageReceivedStatusChange, onSaveDraft -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onSaveDraft
void onSaveDraft(Conversation.ConversationType type, String targetId, String content)
会话里保存草稿时,回调此方法
- Parameters:
type- 会话类型targetId- 会话 Idcontent- 草稿内容
-
onClearedMessage
void onClearedMessage(Conversation.ConversationType type, String targetId)
根据会话类型,清空某一会话的所有聊天消息记录,回调此方法。
- Parameters:
type- 会话类型。不支持传入 ConversationType.targetId- 目标 Id。根据不同的 conversationType,可能是用户 Id、讨论组 Id、群组 Id。
-
onClearedUnreadStatus
void onClearedUnreadStatus(Conversation.ConversationType type, String targetId)
清除某会话的所有消息未读状态时,回调此方法。
- Parameters:
type- 会话类型。不支持传入 ConversationType.targetId- 目标 Id。根据不同的 conversationType,可能是用户 Id、讨论组 Id、群组 Id。
-
onConversationRemoved
void onConversationRemoved(Conversation.ConversationType type, String targetId)
从会话列表删除某会话时的回调。
- Parameters:
type- 会话类型targetId- 会话 Id
-
onOperationFailed
void onOperationFailed(RongIMClient.ErrorCode code)
操作失败的回调。
-
onClearConversations
void onClearConversations(Array<Conversation.ConversationType> conversationTypes)
清除某类会话。
- Parameters:
conversationTypes- 会话类型。
-
-
-
-