getGroupOnlineMemberCount

Introduction

Get the online member count for a specific group.

Only works with AVChatRoom temporarily.

The call rate of method is limited to once in 60 seconds for SDK level.

Parameter details

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

Returned template

V2TimValueCallback<int>

{
    code : int
    desc : String
    data : int
}

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.
data int The online member count returned.

Code example

    V2TimValueCallback<int> getGroupOnlineMemberCountRes =
        await TencentImSDKPlugin.v2TIMManager
            .getGroupManager()
            .getGroupOnlineMemberCount(
              groupID: "groupID",
            );
    if (getGroupOnlineMemberCountRes.code == 0) {
      int? groupOnlineMemberCount = getGroupOnlineMemberCountRes.data;
    }

results matching ""

    No results matching ""