Skip to main content

getFriendList

Description

info

Get all your friend lists at once. It is recommended to use getFriendListPage to get them paginated.

Function Prototype


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

Input Parameters

Parameter NameParameter TypeRequiredDescription
filterBlackBOOLNoWhether to filter out the blocklist

Return Result

Parameter NameParameter TypeDescription
onSuccessNSArray< OIMFriendInfo * >Success
onFailureOIMFailureCallbackFailure

Code Example


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