SDKsFlutter
Get group members info
Batch query group member profiles for specified users using the OpenIM Flutter SDK.
Batch query member profiles for specified users within a target group:
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
groupID | String | Yes | Target group ID. |
userIDList | List<String> | Yes | List of user IDs to query within the group. |
Code example
final members = await OpenIM.iMManager.groupManager.getGroupMembersInfo(
groupID: groupID,
userIDList: userIDList,
);Return value
A successful Future returns a list of matching group member profile records (List<GroupMembersInfo>).
If certain user IDs are absent from the returned list, it indicates they are not currently active members of this group, not that their accounts do not exist.
This query returns an immediate data snapshot and does not emit event notifications. Manage local caches and merge incremental events using the composite key groupID:userID. See Retrieving group members overview for details.
Was this page helpful?