renameConversationGroup
Introduction
Rename the conversation group.
Only works since version of 4.0.8.
Do not works on Web.
Parameter details
Parameter name | Parameter type | Required | Platform | Description |
---|---|---|---|---|
oldName | String | yes | All | The original name of the conversation needs to be renamed. |
newName | String | yes | All | The new name of the conversation. |
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 error. It will be empty if success. |
Code example
V2TimCallback deleteConversationGroupRes = await TencentImSDKPlugin
.v2TIMManager
.getConversationManager()
.renameConversationGroup(
oldName: "oldName",
newName: "newName");
if (deleteConversationGroupRes.code == 0) {
}