Package io.rong.imlib
Interface IRongCoreListener.ReadReceiptListener
-
- All Implemented Interfaces:
public interface IRongCoreListener.ReadReceiptListener
Message receipt listener.
The onReadReceiptReceived callback is triggered when a message receipt is received.
-
-
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. -
-
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 typetargetId
- The target ID of the conversationmessageUId
- 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 typetargetId
- The conversation IDmessageUId
- The UID of the message for which the receipt response was receivedrespondUserIdList
- A list of users in the conversation who responded to this message.
-
-
-
-