Package io.rong.imlib

Interface RongIMClient.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) Callback triggered when a read receipt is received in a one-to-one chat.
      abstract void onMessageReceiptRequest(ConversationType type, String targetId, String messageUId) In a group or discussion group, when someone initiates a read receipt request, the other participants in the conversation will receive the request and this method will be called back.
      abstract void onMessageReceiptResponse(ConversationType type, String targetId, String messageUId, HashMap<String, Long> respondUserIdList) Callback triggered when a user who initiated a receipt request in a group or discussion group receives a response from the recipients.
      • 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)

        Callback triggered when a read receipt is received in a one-to-one chat.

        Parameters:
        message - Encapsulates the ReadReceiptMessage
      • onMessageReceiptRequest

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

        In a group or discussion group, when someone initiates a read receipt request, the other participants in the conversation will receive the request and this method will be called back.

        The recipient should call sendReadReceiptResponse to send a response at the appropriate time (after reading the message).

        Parameters:
        type - The type of the conversation.
        targetId - The target ID of the conversation.
        messageUId - The UID of the message for which the read receipt request was made.
      • onMessageReceiptResponse

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

        Callback triggered when a user who initiated a receipt request in a group or discussion group receives a response from the recipients.

        Parameters:
        type - Conversation type
        targetId - Conversation ID
        messageUId - UID of the message for which the receipt response was received
        respondUserIdList - List of users in the conversation who responded to this message.