SDKsiOS
获取发出的入群申请
分页查询 iOS 当前用户发出的入群申请。
构造 GetGroupApplicationListAsApplicantReq,设置 groupIDs、handleResults、offset 和 count,再传给该 selector。成功 callback 返回当前用户发出的 OIMGroupApplicationInfo 数组。
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];
}];查询只建立快照,不触发申请 delegate;后续状态变化见入群申请概览。
这个页面有帮助吗?