Skip to main content

addBlack

Description

info

Add the other party to the blocklist.

Note

Means they cannot send messages to you, but you can send messages to them.
Related callbacks:
onBlackAdded

Function Prototype


- (void)addToBlackList:(NSString *)userID
onSuccess:(OIMSuccessCallback)onSuccess
onFailure:(OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeRequiredDescription
userIDNSStringYesUser ID

Return Result

Parameter NameParameter TypeDescription
onSuccessOIMSuccessCallbackSuccess
onFailureOIMFailureCallbackFailure

Code Example


[OIMManager.manager addToBlackList:@""
onSuccess:^(NSString * _Nullable data) {
} onFailure:^(NSInteger code, NSString * _Nullable msg) {
}];