浏览 SDKs · iOS
SDKsiOS

获取未处理入群申请数

查询 iOS 指定时间之后的未处理入群申请数。

复制
GetGroupApplicationUnhandledCountReq *req =
  [[GetGroupApplicationUnhandledCountReq alloc] initWithTime:0];
[[OIMManager manager] getGroupApplicationUnhandledCount:req
  onSuccess:^(NSInteger count) { [self updateBadge:count]; }
  onFailure:^(NSInteger code, NSString *message) { [self showErrorCode:code message:message]; }];

time 是查询起点。成功 callback 返回数量,不修改任何申请状态。