Package io.rong.imkit

Interface ConversationEventListener

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onSaveDraft(ConversationType type, String targetId, String content) 会话里保存草稿时,回调此方法
      void onSaveDraft(ConversationIdentifier conversationIdentifier, String content)
      abstract void onClearedMessage(ConversationType type, String targetId) 根据会话类型,清空某一会话的所有聊天消息记录,回调此方法。
      void onClearedMessage(ConversationIdentifier conversationIdentifier)
      abstract void onClearedUnreadStatus(ConversationType type, String targetId) 清除某会话的所有消息未读状态时,回调此方法。
      void onClearedUnreadStatus(ConversationIdentifier conversationIdentifier)
      abstract void onConversationRemoved(ConversationType type, String targetId) 从会话列表删除某会话时的回调。
      abstract void onOperationFailed(ErrorCode code) 操作失败的回调。
      abstract void onClearConversations(Array<ConversationType> conversationTypes) 清除某类会话。
      void onMessageReceivedStatusChange(int messageId, ConversationType conversationType, String targetId, ReceivedStatus status)
      void onChannelChange(String groupId, String channelId, UltraGroupChannelType type)
      void onChannelDelete(String groupId, String channelId)
      void onChannelKicked(String groupId, String channelId, String userId)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onSaveDraft

         abstract void onSaveDraft(ConversationType type, String targetId, String content)

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

        Parameters:
        type - 会话类型
        targetId - 会话 Id
        content - 草稿内容
      • onSaveDraft

         void onSaveDraft(ConversationIdentifier conversationIdentifier, String content)
      • onClearedMessage

         abstract void onClearedMessage(ConversationType type, String targetId)

        根据会话类型,清空某一会话的所有聊天消息记录,回调此方法。

        Parameters:
        type - 会话类型。不支持传入 ConversationType.
        targetId - 目标 Id。根据不同的 conversationType,可能是用户 Id、讨论组 Id、群组 Id。
      • onClearedMessage

         void onClearedMessage(ConversationIdentifier conversationIdentifier)
      • onClearedUnreadStatus

         abstract void onClearedUnreadStatus(ConversationType type, String targetId)

        清除某会话的所有消息未读状态时,回调此方法。

        Parameters:
        type - 会话类型。不支持传入 ConversationType.
        targetId - 目标 Id。根据不同的 conversationType,可能是用户 Id、讨论组 Id、群组 Id。
      • onConversationRemoved

         abstract void onConversationRemoved(ConversationType type, String targetId)

        从会话列表删除某会话时的回调。

        Parameters:
        type - 会话类型
        targetId - 会话 Id
      • onOperationFailed

         abstract void onOperationFailed(ErrorCode code)

        操作失败的回调。

      • onClearConversations

         abstract void onClearConversations(Array<ConversationType> conversationTypes)

        清除某类会话。

        Parameters:
        conversationTypes - 会话类型。
      • onMessageReceivedStatusChange

         void onMessageReceivedStatusChange(int messageId, ConversationType conversationType, String targetId, ReceivedStatus status)
        Parameters:
        conversationType - 聊天类型
        targetId - 会话 Id
        status - 状态
        Since:

        5.2.5 媒体消息发生改变回调

      • onChannelChange

         void onChannelChange(String groupId, String channelId, UltraGroupChannelType type)
      • onChannelKicked

         void onChannelKicked(String groupId, String channelId, String userId)