浏览 SDKs · iOS
SDKsiOS

获取未处理好友申请数

获取 iOS 好友申请的未处理数量。

复制
GetFriendApplicationUnhandledCountReq *req = [GetFriendApplicationUnhandledCountReq new];
req.time = lastViewedAt;
[[OIMManager manager] getFriendApplicationUnhandledCount:req
                                               onSuccess:^(NSInteger count) {
                                                   [requestStore setUnhandledCount:count];
                                               }
                                               onFailure:nil];

time 通常传上次查看申请列表的时间。成功 callback 返回该时间点之后符合条件的未处理数量快照;查询本身不触发申请 delegate。