Package io.rong.imlib
Class ReadReceiptV2Manager
-
- All Implemented Interfaces:
public class ReadReceiptV2Manager
Group Read Receipt V2 Manager.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract class
ReadReceiptV2Manager.GroupReadReceiptV2Listener
Message receipt listener.
Callback triggered when a message receipt is received.
public interface
ReadReceiptV2Manager.IGetMessageReadUserListCallback
Callback for retrieving the list of users who have read the message
public enum
ReadReceiptV2Manager.GroupReadReceiptVersion
Enum declaration for group read receipt versions.
0, indicates the legacy version; 1, indicates the V2 version.
-
Field Summary
Fields Modifier and Type Field Description public static ReadReceiptV2Manager.GroupReadReceiptV2Listener
groupReadReceiptV2Listener
-
Method Summary
Modifier and Type Method Description static ReadReceiptV2Manager.GroupReadReceiptV2Listener
getGroupReadReceiptV2Listener()
static void
setGroupReadReceiptV2Listener(ReadReceiptV2Manager.GroupReadReceiptV2Listener listener)
void
init(Context context, IRongCoreListener.OnReceiveMessageListener listener, IHandler stub)
static ReadReceiptV2Manager
getInstance()
void
sendReadReceiptResponse(ConversationType type, String targetId, String channelId, List<Message> messageList, IRongCoreCallback.OperationCallback callback)
Send read receipt (new solution) (only supports group chat) void
getGroupMessageReaderList(Message message, ReadReceiptV2Manager.IGetMessageReadUserListCallback callback)
Get the list of users who have read the message (only supported for groups) -
-
Method Detail
-
getGroupReadReceiptV2Listener
static ReadReceiptV2Manager.GroupReadReceiptV2Listener getGroupReadReceiptV2Listener()
-
setGroupReadReceiptV2Listener
static void setGroupReadReceiptV2Listener(ReadReceiptV2Manager.GroupReadReceiptV2Listener listener)
-
init
void init(Context context, IRongCoreListener.OnReceiveMessageListener listener, IHandler stub)
-
getInstance
static ReadReceiptV2Manager getInstance()
-
sendReadReceiptResponse
void sendReadReceiptResponse(ConversationType type, String targetId, String channelId, List<Message> messageList, IRongCoreCallback.OperationCallback callback)
Send read receipt (new solution) (only supports group chat)
- Parameters:
type
- Conversation typetargetId
- Conversation IDchannelId
- Business identifier of the conversation to which the message belongsmessageList
- List of messages in the conversation for which read receipts need to be sentcallback
- Callback function
-
getGroupMessageReaderList
void getGroupMessageReaderList(Message message, ReadReceiptV2Manager.IGetMessageReadUserListCallback callback)
Get the list of users who have read the message (only supported for groups)
- Parameters:
message
- The message in the conversation for which read receipts are to be sentcallback
- The callback function
-
-
-
-