Skip to main content

getFriendListPage

Feature Introduction

Description

Get the list of the specified number of friends in pages. offset is the offset when getting, count is the number of friends

Note

The count should not be too large, otherwise the request will take too long

Function Prototype


- (void)getFriendListPageWithFilterBlack:(BOOL)filterBlack
offset:(NSInteger)offset
count:(NSInteger)count
onSuccess:(nullable OIMFriendInfoCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameParameter TypeMandatoryDescription
offsetNSIntegerYespage offset
countNSIntegerYespage size
filterBlackBOOLNoif true, the return value will not be include blacklist users.

Return Values

Parameter NameParameter TypeDescription
onSuccessNSArray< OIMFriendInfo * >Success
onFailureOIMFailureCallbackFailure

Code Example


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