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) Callback triggered when a message 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, other participants in the conversation will receive the request and trigger this callback method.
      abstract void onMessageReceiptResponse(ConversationType type, String targetId, String messageUId, HashMap<String, Long> respondUserIdList) This method is called when the user who initiated the receipt request in a group or discussion group receives responses 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 message receipt is received in a one-to-one chat.

        Parameters:
        message - Encapsulates ReadReceiptMessage
      • onMessageReceiptRequest

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

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

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

        Parameters:
        type - The conversation type
        targetId - The target ID of the conversation
        messageUId - The message UID for which the read receipt is requested
      • onMessageReceiptResponse

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

        This method is called when the user who initiated the receipt request in a group or discussion group receives responses from the recipients.

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