Skip to main content

getFriendListPage

Description

info

Get a paginated list of a specified number of friends. offset is the starting index for pagination, and count is the number of records per page.

Note

The count number should not be too large, otherwise the request duration will be 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 TypeRequiredDescription
filterBlackBOOLNoWhether to filter out the blocklist
offsetNSIntegerYesStarting index for pagination
countNSIntegerYesNumber of records per page

Return Result

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) {
}];