markC2CMessageAsRead
Introduction
Mark a specific c2c conversation as read.
The target user will receive the callback of onRecvC2CReadReceipt.
Parameter details
| Parameter name | Parameter type | Required | Platform | Description |
|---|---|---|---|---|
| userID | String | yes | All | The target user ID associated with this conversation. |
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 markC2CMessageAsReadRes = await TencentImSDKPlugin
.v2TIMManager
.getMessageManager()
.markC2CMessageAsRead(userID: "userID");
if (markC2CMessageAsReadRes.code == 0) {
}