setGroupInfo method

Future<V2TimCallback> setGroupInfo({
  1. required String groupID,
  2. String? groupType,
  3. String? groupName,
  4. String? notification,
  5. String? introduction,
  6. String? faceUrl,
  7. bool? isAllMuted,
  8. int? addOpt,
  9. Map<String, String>? customInfo,
})

修改群资料

Implementation

Future<V2TimCallback> setGroupInfo({
  required String groupID,
  String? groupType,
  String? groupName,
  String? notification,
  String? introduction,
  String? faceUrl,
  bool? isAllMuted,
  int? addOpt,
  Map<String, String>? customInfo,
}) async {
  return V2TimCallback.fromJson(
    formatJson(
      await _channel.invokeMethod(
        "setGroupInfo",
        buildParam(
          {
            "groupID": groupID,
            "groupType": groupType,
            "groupName": groupName,
            "notification": notification,
            "introduction": introduction,
            "faceUrl": faceUrl,
            "isAllMuted": isAllMuted,
            "addOpt": addOpt,
            "customInfo": customInfo
          },
        ),
      ),
    ),
  );
}