getMessageReadReceipts

Introduction

Load the list of reading receipt for messages.

This method only works with Ultimate Edition, you can find the pricing plan here.

Works since version 3.9.3.

Only supports group messages temporarily. The IDs in messageIDList must be in the same group.

Specifying a group type for which to support message read receipts: Log in to the IM console, select Feature Configuration > Login and Message > Group Message Read Receipts.

Parameter details

Parameter name Parameter type Required Platform Description
messageIDList List< String > yes All The list of message IDs to query for.

Returned template

V2TimValueCallback<List<V2TimMessageReceipt>>

{
    code : int
    desc : String
    data : List<V2TimMessageReceipt>
}

Return value details

name type description
code int Request result: Error codes. 0 means success.
desc String The description of the failure.
data List< V2TimMessageReceipt > The list of results.

Code example

    V2TimValueCallback<List<V2TimMessageReceipt>> getMessageReadReceipts =
        await TencentImSDKPlugin.v2TIMManager
            .getMessageManager()
            .getMessageReadReceipts(messageIDList: []);
    if (getMessageReadReceipts.code == 0) {
      getMessageReadReceipts.data.forEach((element) {
        element.groupID;
        element.msgID;
        element.readCount;
        element.timestamp;
        element.unreadCount;
        element.userID;
      });
    }

results matching ""

    No results matching ""