markGroupMessageAsRead

Introduction

Mark a specific group chat as read.

The target user will receive the callback of onRecvC2CReadReceipt.

Parameter details

Parameter name Parameter type Required Platform Description
groupID String yes All The ID of the group to mark as read.

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 markGroupMessageAsReadRes =
        await TencentImSDKPlugin.v2TIMManager
            .getMessageManager()
            .markGroupMessageAsRead(groupID: "groupID");
    if(markGroupMessageAsReadRes.code==0){
    }

results matching ""

    No results matching ""