Skip to main content

getSpecifiedFriendsInfo

Feature Introduction

Note

(1) Retrieve specific friend's nickname, avatar, and remarks. (2) This function fetches data from the APP locally. A maximum of 10,000 entries is recommended per fetch.

Function Prototype

- (void)getSpecifiedFriendsInfo:(NSArray <NSString *> *)usersID
onSuccess:(nullable OIMFriendsInfoCallback)onSuccess
onFailure:(nullable OIMFailureCallback)onFailure;

Input Parameters

Parameter NameData TypeRequiredDescription
usersIDNSArray <NSString *>YesList of user IDs

Return Value

Parameter NameData TypeDescription
onSuccessNSArray< OIMFriendInfo * >Successful return
onFailureOIMFailureCallbackFailure return

Code Example

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