Package io.rong.imlib
Class ReadReceiptV2Manager
-
- All Implemented Interfaces:
public class ReadReceiptV2ManagerGroup Read Receipt V2 Manager.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classReadReceiptV2Manager.GroupReadReceiptV2ListenerMessage receipt listener.
Callback triggered when a message receipt is received.
public interfaceReadReceiptV2Manager.IGetMessageReadUserListCallbackCallback for retrieving the list of users who have read the message
public enumReadReceiptV2Manager.GroupReadReceiptVersionEnum 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.GroupReadReceiptV2ListenergroupReadReceiptV2Listener
-
Method Summary
Modifier and Type Method Description static ReadReceiptV2Manager.GroupReadReceiptV2ListenergetGroupReadReceiptV2Listener()static voidsetGroupReadReceiptV2Listener(ReadReceiptV2Manager.GroupReadReceiptV2Listener listener)voidinit(Context context, IRongCoreListener.OnReceiveMessageListener listener, IHandler stub)static ReadReceiptV2ManagergetInstance()voidsendReadReceiptResponse(ConversationType type, String targetId, String channelId, List<Message> messageList, IRongCoreCallback.OperationCallback callback)Send read receipt (new solution) (only supports group chat) voidgetGroupMessageReaderList(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
-
-
-
-