checkFriend method

Future<V2TimValueCallback<List<V2TimFriendCheckResult>>> checkFriend(
  1. List<String> userIDList,
  2. int checkType
)

检查指定用户的好友关系

参数

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

Implementation

Future<V2TimValueCallback<List<V2TimFriendCheckResult>>> checkFriend(
  List<String> userIDList,
  int checkType,
) async {
  return V2TimValueCallback<List<V2TimFriendCheckResult>>.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "checkFriend",
        buildParam(
          {
            "userIDList": userIDList,
            "checkType": checkType,
          },
        ),
      ),
    ),
  );
}