SDKsFlutter
Retrieve specified group-member profiles
Retrieve group-member profiles for specified users with the OpenIM Flutter SDK.
getGroupMembersInfo() retrieves specified group members from a list of user IDs.
final members = await OpenIM.iMManager.groupManager.getGroupMembersInfo(
groupID: groupID,
userIDList: userIDList,
);groupID identifies the target group, and userIDList contains the users to query. A successful Future returns the matching List<GroupMembersInfo>. A missing user does not prove that the account does not exist; it means only that no member profile was obtained for that target group.
The result is a current snapshot and does not trigger member events. Cache it by groupID:userID; see Group member queries overview for incremental synchronization.
Was this page helpful?