checkFriend method

  1. @override
Future<V2TimValueCallback<List<V2TimFriendCheckResult>>> checkFriend({
  1. required List<String> userIDList,
  2. required int checkType,
})
override

检查指定用户的好友关系

参数

checkType	检查类型
V2TIMFriendInfo.V2TIM_FRIEND_TYPE_SINGLE:单向好友
V2TIMFriendInfo.V2TIM_FRIEND_TYPE_BOTH:双向好友

Implementation

@override
Future<V2TimValueCallback<List<V2TimFriendCheckResult>>> checkFriend({
  required List<String> userIDList,
  required int checkType,
}) async {
  Map<String, dynamic> param = {
    "userIDList": userIDList,
    "checkType": checkType,
  };
  var resp = V2TimValueCallback<List<V2TimFriendCheckResult>>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "checkFriend",
        buildFriendManagerParam(
          param,
        ),
      ),
    ),
  );
  log("checkFriend", param, resp.toLogString());
  return resp;
}