Skip to main content

getSubscribeUsersStatus

Feature Introduction

Description

Obtain the online status of all subscribed users.

Note

When obtaining the online status of all subscribed users, a maximum of 3000 can be returned at once.

Function Prototype


- (void)getSubscribeUsersStatusWithOnSuccess:(nullable OIMUserStatusInfosCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

None

Return Results

Parameter NameParameter TypeDescription
onSuccessNSArray<OIMUserStatusInfo *>Success
onFailureOIMFailureCallbackFailure

Code Example


[OIMManager.manager getSubscribeUsersStatusWithOnSuccess:^(NSArray<OIMUserStatusInfo *> * _Nullable statusInfos) {

} onFailure:^(NSInteger code, NSString * _Nullable msg) {

}];