Package io.rong.imlib
Interface IRongCoreListener.ReadReceiptListener
-
- All Implemented Interfaces:
public interface IRongCoreListener.ReadReceiptListener
消息回执监听器。
收到消息回执时会回调 onReadReceiptReceived 。
-
-
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)
在群组和讨论组中发起了回执请求的用户,当收到接收方的响应时,会回调此方法。 -
-
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
- 会话目标 idmessageUId
- 请求已读回执的消息 uId
-
onMessageReceiptResponse
abstract void onMessageReceiptResponse(ConversationType type, String targetId, String messageUId, HashMap<String, Long> respondUserIdList)
在群组和讨论组中发起了回执请求的用户,当收到接收方的响应时,会回调此方法。
- Parameters:
type
- 会话类型targetId
- 会话 idmessageUId
- 收到回执响应的消息的 uIdrespondUserIdList
- 会话中响应了此消息的用户列表。其中 key: 用户 id ; value: 响应时间。
-
-
-
-