setGroupInfo
Introduction
Modify the group information.
For work groups (Work), all group members can modify the basic group profile.
For public groups (Public), meeting groups (Meeting), and community groups (Community), only the group owner and admin can modify the group profile.
For audio-video groups (AVChatRoom), only the group owner can modify the group profile.
Detailed usage can referring to this document.
Parameter details
Parameter name | Parameter type | Required | Platform | Description |
---|---|---|---|---|
info | V2TimGroupInfo | yes | All | The group information needed to be modified and set. |
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 setGroupInfoRes = await TencentImSDKPlugin.v2TIMManager
.getGroupManager()
.setGroupInfo(info: V2TimGroupInfo(
groupID: '',
groupType: ''
// V2TimGroupInfo
));
if (setGroupInfoRes.code == 0) {
}