Browse SDKs · React Native
Platform
SDKsReact Native

Get sent group applications

Paginate and retrieve outgoing group join applications submitted by the current account using the OpenIM React Native SDK.

Copy

Paginate and query outgoing group applications submitted by the current account, with optional filters for group IDs and review statuses:

const applications = await OpenIMSDK.getGroupApplicationListAsApplicant({
  groupIDs: ['group-001'],
  handleResults: [
    ApplicationHandleResult.Unprocessed,
    ApplicationHandleResult.Agree,
    ApplicationHandleResult.Reject,
  ],
  offset: 0,
  count: 20,
});

Parameters

ParameterTypeRequiredDescription
groupIDsstring[]YesArray of group IDs to filter by; pass an empty array [] to query all groups.
handleResultsnumber[]YesList of handle statuses to filter by; pass an empty array [] to match all.
offsetnumberYesPagination offset starting from 0.
countnumberYesMaximum number of records to retrieve.

Status values correspond to ApplicationHandleResult, detailed in Get received group applications.

Return value

Resolves to an array of GroupApplicationItem[] for the requested page. When the returned count is less than count, the end of the list has been reached. Reconcile records using the composite key groupID:userID. For property definitions and event listeners, see Get received group applications.