createConversationGroup
Introduction
Create conversation group.
Users can create conversation groups in some cases, like separate to 'Work groups', 'Social groups', with this method.
This method only works with Ultimate Edition, you can find the pricing plan here.
Only works since version of 4.0.8.
Do not works on Web.
The maximum number of conversation groups is 20, so please delete unused conversation groups.
Parameter details
Parameter name | Parameter type | Required | Platform | Description |
---|---|---|---|---|
conversationIDList | List< String > | yes | All | The original conversation list that will be added to this conversation group. |
groupName | String | yes | All | The name of the conversation group. |
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()
.createConversationGroup(
groupName: "groupName",
conversationIDList: []);
if (setConversationCustomDataRes.code == 0) {
setConversationCustomDataRes.data?.forEach((element) {
element.conversationID;
element.resultCode;
element.resultInfo;
});
}