setFriendInfo method

  1. @override
Future<V2TimCallback> setFriendInfo({
  1. required String userID,
  2. String? friendRemark,
  3. Map<String, String>? friendCustomInfo,
})
override

设置指定好友资料

Implementation

@override
Future<V2TimCallback> setFriendInfo({
  required String userID,
  String? friendRemark,
  Map<String, String>? friendCustomInfo,
}) async {
  return V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "setFriendInfo",
        buildFriendManagerParam(
          {
            "userID": userID,
            "friendRemark": friendRemark,
            "friendCustomInfo": friendCustomInfo,
          },
        ),
      ),
    ),
  );
}