dismissGroup

Introduction

Dismiss and delete a specific group.

Call this method to delete a group. Then all group members receive the onGroupDismissed callback.

For a public group (Public), meeting group (Meeting), community group (Community), or audio-video group (AVChatRoom), the group owner can delete the group at any time.

For a work group (Work), the group owner does not have the permission to delete the group. To delete the group, you must have your service server call the RESTful API.

Parameter details

Parameter name Parameter type Required Platform Description
groupID String yes All The ID of the group to dismiss.

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 dismissGroupRes = await TencentImSDKPlugin.v2TIMManager
        .dismissGroup(groupID: "groupID"); 
    if (dismissGroupRes.code == 0) {
    }

results matching ""

    No results matching ""