addConversationsToGroup

Introduction

Adding conversation to a specific group.

Only works since version of 4.0.8.

Do not works on Web.

Parameter details

Parameter name Parameter type Required Platform Description
groupName String yes All The group name, that will be added with conversation.
conversationIDList List< String > yes All The list of conversation IDs that will be added to the group.

Returned template

V2TimValueCallback<List<V2TimConversationOperationResult>>

{
    code : int
    desc : String
    data : List<V2TimConversationOperationResult>//The list of results.
}

Return value details

name type description
code int Result error code: Error Codes
desc String The description of the error.
data List< V2TimConversationOperationResult > The list of results.

Code example

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

results matching ""

    No results matching ""