Browse SDKs · React Native
Platform
SDKsReact Native

Get specified groups info

Batch query detailed group information by group IDs using the OpenIM React Native SDK.

Copy

Batch query detailed profile information for specified groups by their IDs:

const groups = await OpenIMSDK.getSpecifiedGroupsInfo([
  'group-001',
  'group-002',
]);

Parameters

ParameterTypeRequiredDescription
groupIDsstring[]YesArray of group IDs to query.

Return value

A resolved Promise returns GroupItem[] matching the requested group IDs. The order of elements in the returned array is not guaranteed to match the input sequence; correlate and merge records into local state using groupID. For field definitions, see Group overview.