SDKsiOS
Retrieve sent group applications
Retrieve group applications sent by the current iOS user with pagination.
Invoke getGroupApplicationListAsApplicantWithRep:onSuccess:onFailure: to query group join applications submitted by the current user with pagination:
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
req | GetGroupApplicationListAsApplicantReq * | Yes | Request object containing target group IDs, status filters, and pagination parameters. |
GetGroupApplicationListAsApplicantReq properties
| Parameter | Type | Required | Description |
|---|---|---|---|
groupIDs | NSArray<NSString *> * | Yes | List of target group IDs. |
handleResults | NSArray<NSNumber *> * | No | Status filter array wrapping OIMApplicationStatus values. |
offset | NSInteger | Yes | Pagination offset index (starts from 0). |
count | NSInteger | Yes | Maximum number of items per page. |
Application status enumeration
| Enumeration value | Numeric value | Description |
|---|---|---|
OIMApplicationStatusNormal | 0 | Pending review (unhandled). |
OIMApplicationStatusAgree | 1 | Accepted. |
OIMApplicationStatusReject | -1 | Rejected. |
Code example
GetGroupApplicationListAsApplicantReq *req =
[[GetGroupApplicationListAsApplicantReq alloc] initWithGroupIDs:@[@"group_1001"]
handleResults:@[@(OIMApplicationStatusNormal)]
offset:0
count:20];
[[OIMManager manager] getGroupApplicationListAsApplicantWithRep:req
onSuccess:^(NSArray<OIMGroupApplicationInfo *> *items) {
[self replaceSentApplications:items];
}
onFailure:^(NSInteger code, NSString *message) {
NSLog(@"getGroupApplicationListAsApplicant failed: %ld %@", (long)code, message);
}];Return value
The onSuccess callback delivers an array of application records (NSArray<OIMGroupApplicationInfo *> *) created by the current user.
State changes after the call
- Snapshot query: This method queries a paginated slice of outgoing requests without triggering delegate events.
- Local state merge: Merge items locally using
groupID:userIDas the unique composite key. - Event notification: When submitted applications are accepted, rejected, or deleted, updates broadcast via listener callbacks. For listener setup, refer to Group applications overview.
Was this page helpful?