Package io.rong.imlib
Interface RongIMClient.ReadReceiptListener
-
- All Implemented Interfaces:
public interface RongIMClient.ReadReceiptListenerMessage receipt listener.
Triggers the onReadReceiptReceived callback when a message receipt is received.
-
-
Method Summary
Modifier and Type Method Description abstract voidonReadReceiptReceived(Message message)Callback triggered when a read receipt is received in a one-to-one chat. abstract voidonMessageReceiptRequest(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 voidonMessageReceiptResponse(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. -
-
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 typetargetId- Conversation IDmessageUId- UID of the message for which the receipt response was receivedrespondUserIdList- List of users in the conversation who responded to this message.
-
-
-
-