searchFriends method

  1. @override
Future<List<V2TimFriendInfoResult>?> searchFriends({
  1. required V2TimFriendSearchParam searchParam,
})
override

Implementation

@override
Future<List<V2TimFriendInfoResult>?> searchFriends({
  required V2TimFriendSearchParam searchParam,
}) async {
  final res = await TencentImSDKPlugin.v2TIMManager
      .getFriendshipManager()
      .searchFriends(searchParam: searchParam);
  if (res.code == 0) {
    return res.data;
  } else {
    _coreService.callOnCallback(TIMCallback(
        type: TIMCallbackType.API_ERROR,
        errorMsg: res.desc,
        errorCode: res.code));
    return null;
  }
}