getGroupsInfo

Introduction

Get the information of the list of groups.

This method supports batch requests for multiple groups.

Parameter details

Parameter name Parameter type Required Platform Description
groupIDList List< String > yes All The group ID list.

Returned template

V2TimValueCallback<List<V2TimGroupInfoResult>>

{
    code : int
    desc : String
    data : List<V2TimGroupInfoResult>
}

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 List< V2TimGroupInfoResult > The list of group information returned.

Code example

     V2TimValueCallback<List<V2TimGroupInfoResult>> getGroupsInfoRes =
        await TencentImSDKPlugin.v2TIMManager
            .getGroupManager()
            .getGroupsInfo(groupIDList: []);
    if (getGroupsInfoRes.code == 0) {
      getGroupsInfoRes.data?.forEach((element) {
        element.resultCode;
        element.resultMessage;
        element.groupInfo?.createTime;
        element.groupInfo?.customInfo;
        element.groupInfo?.faceUrl;
        element.groupInfo?.groupAddOpt;
        element.groupInfo?.groupID;
        element.groupInfo?.groupName;
        element.groupInfo?.groupType;
        element.groupInfo?.introduction;
        element.groupInfo?.isAllMuted;
        element.groupInfo?.isSupportTopic;
        element.groupInfo?.joinTime;
        element.groupInfo?.lastInfoTime;
        element.groupInfo?.lastMessageTime;
        element.groupInfo?.memberCount;
        element.groupInfo?.notification;
        element.groupInfo?.onlineCount;
        element.groupInfo?.owner;
        element.groupInfo?.recvOpt;
        element.groupInfo?.role;
      });
    }

results matching ""

    No results matching ""