Skip to main content

getFriendList

Feature Introduction

Description

Retrieve all of one's friends in a single call.

Function Prototype


- (void)getFriendListWithFilterBlack:(BOOL)filterBlack
onSuccess:(nullable OIMFriendInfoCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeMandatoryDescription
filterBlackbooleanNoWhether to filter out the blacklist
operationIDstringNoOperation ID, used for problem location, unique, recommended to use current time and random number

Return Values

Parameter NameParameter TypeDescription
onSuccessNSArray< OIMFriendInfo * >Successful Return
onFailureOIMFailureCallbackFailure Return

Code Example


[OIMManager.manager getFriendListWithFilterBlack: NO,
onSuccess:^(NSArray<OIMFriendInfo *> * _Nullable userInfos) {
} onFailure:^(NSInteger code, NSString * _Nullable msg) {
}];