setConversationCustomData

Introduction

Set the custom data for the conversation.

Only works since version of 4.0.8.

Parameter details

Parameter name Parameter type Required Platform Description
conversationIDList List< String > yes All The list of conversation IDs to set.
customData String yes All The custom data for the conversation.

Returned template

V2TimValueCallback<List<V2TimConversationOperationResult>>

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

Return value details

name type description
code int Request result: Error codes. 0 means success.
desc String The description of the error. It will be empty if success.
data List< V2TimConversationOperationResult > The list of results.

Code example

    V2TimValueCallback<List<V2TimConversationOperationResult>>
        setConversationCustomDataRes = await TencentImSDKPlugin.v2TIMManager
            .getConversationManager()
            .setConversationCustomData(
                customData: "customData",
                conversationIDList: []);
    if (setConversationCustomDataRes.code == 0) {
      setConversationCustomDataRes.data?.forEach((element) {
        element.conversationID;
        element.resultCode;
        element.resultInfo;
      });
    }

results matching ""

    No results matching ""