markAllMessageAsRead
Introduction
Mark all message related to current users as read. Clear the total unread count.
The target user will receive the callback of onRecvC2CReadReceipt.
Parameter details
This API has no parameters
Returned template
V2TimCallback
{
code : int
desc : String
}
Return value details
| name | type | description |
|---|---|---|
| code | int | Request result: Error codes. 0 means success. |
| desc | String | The description of the failure. |
Code example
V2TimCallback markAllMessageAsReadRes = await TencentImSDKPlugin
.v2TIMManager
.getMessageManager()
.markAllMessageAsRead();
if (markAllMessageAsReadRes.code == 0) {
}