Skip to main content

getSpecifiedFriendsInfo

Description

info

Get the nickname, avatar, and remark of specified friends. This function fetches from the local APP. It is recommended to have a maximum of 10000 at a time.

Function Prototype


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

Input Parameters

Parameter NameParameter TypeRequiredDescription
usersIDNSArray &lt;NSString *>YesList of User IDs
filterBlackBOOLYesWhether to filter out the blocklist

Return Result

Parameter NameParameter TypeDescription
onSuccessNSArray&lt;List< OIMFriendInfo * >Success
onFailureOIMFailureCallbackFailure

Code Example


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