quitGroup

Introduction

Quit a group.

The user who quits the group then receives the onQuitFromGroup callback and other group members receive the onMemberLeave callback.

For a public group (Public), meeting group (Meeting), community group (Community), or audio-video group (AVChatRoom), the group owner is not allowed to quit the group but can delete the group.

Parameter details

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

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

results matching ""

    No results matching ""