OnRecvC2CReadReceiptCallback
Introduction
The callback of the target user reporting read your messages event.
This callback will be triggered after the receiver user invokes markC2CMessageAsRead.
Returned template
OnRecvC2CReadReceiptCallback = void Function(
List<V2TimMessageReceipt> receiptList
)
Return value details
name | type | description |
---|---|---|
receiptList | List< V2TimMessageReceipt > | The list of read receipts. |
Code example
V2TimAdvancedMsgListener listener = V2TimAdvancedMsgListener(
onRecvC2CReadReceipt: (List<V2TimMessageReceipt> receiptList) {
for (V2TimMessageReceipt element in receiptList) {
element.groupID;
element.msgID;
element.readCount;
element.unreadCount;
element.userID;
}
);
TencentImSDKPlugin.v2TIMManager
.getMessageManager()
.addAdvancedMsgListener(listener: listener);