Browse SDKs · iOS
SDKsiOS

Retrieve sent group applications

Retrieve group applications sent by the current iOS user with pagination.

Copy

Create a GetGroupApplicationListAsApplicantReq, set groupIDs, handleResults, offset, and count, then pass it to the selector. The success callback returns the current user's sent applications as OIMGroupApplicationInfo objects.

GetGroupApplicationListAsApplicantReq *req =
  [[GetGroupApplicationListAsApplicantReq alloc] initWithGroupIDs:@[groupID]
    handleResults:@[@(OIMApplicationStatusNormal)] offset:0 count:20];
[[OIMManager manager] getGroupApplicationListAsApplicantWithRep:req
  onSuccess:^(NSArray<OIMGroupApplicationInfo *> *items) {
    [self replaceSentApplications:items];
  }
  onFailure:^(NSInteger code, NSString *message) {
    [self showErrorCode:code message:message];
  }];

The query only establishes a snapshot and does not trigger the application delegate. For later state changes, see Group applications overview.