SDKsFlutter
Retrieve specified friend profiles
Retrieve relationship profiles for specified friends with the OpenIM Flutter SDK.
final friends = await OpenIM.iMManager.friendshipManager.getFriendsInfo(
userIDList: ['user_a', 'user_b'],
filterBlack: true,
);userIDList contains the target users, and filterBlack determines whether blocked users are excluded. A successful Future returns the matching List<FriendInfo>. Check the nullable userID before merging each item by that ID. An empty list generally means that the targets are not friends or were filtered out.
This query does not trigger the friendship listener. If you only need to check relationship state, use checkFriend().
Was this page helpful?