Package io.rong.imlib

Interface IRongCoreListener.ReadReceiptListener

    • 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 onReadReceiptReceived(Message message) 单聊中收到消息回执的回调。
      abstract void onMessageReceiptRequest(ConversationType type, String targetId, String messageUId) 群组和讨论组中,某人发起了回执请求,会话中其余人会收到该请求,并回调此方法。 接收方需要在合适的时机(读取了消息之后)调用 sendReadReceiptResponse 回复响应。
      abstract void onMessageReceiptResponse(ConversationType type, String targetId, String messageUId, HashMap<String, Long> respondUserIdList) 在群组和讨论组中发起了回执请求的用户,当收到接收方的响应时,会回调此方法。
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • onReadReceiptReceived

         abstract void onReadReceiptReceived(Message message)

        单聊中收到消息回执的回调。

        Parameters:
        message - 封装了 ReadReceiptMessage
      • onMessageReceiptRequest

         abstract void onMessageReceiptRequest(ConversationType type, String targetId, String messageUId)

        群组和讨论组中,某人发起了回执请求,会话中其余人会收到该请求,并回调此方法。

        接收方需要在合适的时机(读取了消息之后)调用 sendReadReceiptResponse 回复响应。

        Parameters:
        type - 会话类型
        targetId - 会话目标 id
        messageUId - 请求已读回执的消息 uId
      • onMessageReceiptResponse

         abstract void onMessageReceiptResponse(ConversationType type, String targetId, String messageUId, HashMap<String, Long> respondUserIdList)

        在群组和讨论组中发起了回执请求的用户,当收到接收方的响应时,会回调此方法。

        Parameters:
        type - 会话类型
        targetId - 会话 id
        messageUId - 收到回执响应的消息的 uId
        respondUserIdList - 会话中响应了此消息的用户列表。其中 key: 用户 id ; value: 响应时间。