Package io.rong.imkit

Class BaseConversationEventListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      void onSaveDraft(Conversation.ConversationType type, String targetId, String content) 会话里保存草稿时,回调此方法
      void onClearedMessage(Conversation.ConversationType type, String targetId) 根据会话类型,清空某一会话的所有聊天消息记录,回调此方法。
      void onClearedUnreadStatus(Conversation.ConversationType type, String targetId) 清除某会话的所有消息未读状态时,回调此方法。
      void onConversationRemoved(Conversation.ConversationType type, String targetId) 从会话列表删除某会话时的回调。
      void onOperationFailed(RongIMClient.ErrorCode code) 操作失败的回调。
      void onClearConversations(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
    • Constructor Detail

      • BaseConversationEventListener

        BaseConversationEventListener()
    • Method Detail

      • onSaveDraft

         void onSaveDraft(Conversation.ConversationType type, String targetId, String content)

        会话里保存草稿时,回调此方法

        Parameters:
        type - 会话类型
        targetId - 会话 Id
        content - 草稿内容
      • 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 - 会话类型。