joinGroup

Introduction

The user calls this method to request to join the group.

groupType is necessary when joining a AVChatRoom on Web.

Work groups (Work) and public groups (Public) do not allows group members to view messages sent before they join the group. To enable the feature, submit a change request by referring to Configuration Change Ticket.

Parameter details

Parameter name Parameter type Required Platform Description
groupID String yes All The ID of the group to join.
message String yes All The message of the joining application.
groupType GroupType no All The type of group to join.

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 joinGroupRes = await TencentImSDKPlugin.v2TIMManager
        .joinGroup(
          groupID: "groupID",
          message: "hello", 
          groupType: "Public");
    if (joinGroupRes.code == 0) {
    }

results matching ""

    No results matching ""