getGroupMembersInfo

Introduction

Get the group members information for several specified users.

You are supposed to request for multiple users once to improve the performance, as this function supports batch acquisition.

Parameter details

Parameter name Parameter type Required Platform Description
groupID String yes All The group ID.
memberList List< String > yes All The list of members.

Returned template

V2TimValueCallback<List<V2TimGroupMemberFullInfo>>

{
    code : int
    desc : String
    data : List<V2TimGroupMemberFullInfo>// The list of members information returned.
}

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< V2TimGroupMemberFullInfo > The list of members information returned.

Code example

    V2TimValueCallback<List<V2TimGroupMemberFullInfo>> getGroupMembersInfoRes =
        await TencentImSDKPlugin.v2TIMManager
            .getGroupManager()
            .getGroupMembersInfo(
      groupID: "groupID", 
      memberList: [], 
    );
    if (getGroupMembersInfoRes.code == 0) {
      getGroupMembersInfoRes.data?.forEach((element) {
        element.customInfo;
        element.faceUrl;
        element.friendRemark;
        element.joinTime;
        element.muteUntil;
        element.nameCard;
        element.nickName;
        element.role;
        element.userID;
      });
    }

results matching ""

    No results matching ""