Skip to main content

refuseFriendApplication

Function Introduction

Description

Decline the other party's request to add you as a friend.

Note

Related Callback: onFriendApplicationRejected

Function Prototype


- (void)refuseFriendApplication:(NSString *)userID
handleMsg:(NSString *)msg
onSuccess:(nullable OIMSuccessCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeRequiredDescription
userIDNSStringYesUser ID of the applicant
msgNSStringYesOperation message

Return Result

Parameter NameParameter TypeDescription
onSuccessOIMSuccessCallbackSuccess
onFailureOIMFailureCallbackFailure

Code Example


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