浏览 SDKs · iOS
SDKsiOS

获取发出的入群申请

分页查询 iOS 当前用户发出的入群申请。

复制

构造 GetGroupApplicationListAsApplicantReq,设置 groupIDshandleResultsoffsetcount,再传给该 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;后续状态变化见入群申请概览