Skip to main content

unsubscribeUsersStatus

Function Introduction

Description

Unsubscribe from the online status of users.

Warning

After unsubscribing, you will no longer be notified of the user's online and offline status.

Function Prototype


- (void)unsubscribeUsersStatus:(NSArray<NSString *> *)userIDs
onSuccess:(nullable OIMUserStatusInfosCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeMandatoryDescription
userIDsNSArray<NSString *>YesList of User IDs

Return Result

Parameter NameParameter TypeDescription
onSuccessOIMSuccessCallbackSuccess return
onFailureOIMFailureCallbackError return

Code Sample


[OIMManager.manager unsubscribeUsersStatus:@[]
onSuccess:^(NSString * _Nullable result) {

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

}];