// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////

import 'dart:typed_data';

import 'package:tencent_live_fluttify/src/ios/ios.export.g.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'package:foundation_fluttify/foundation_fluttify.dart';

class TXCAVRoomConfig extends NSObject  {
  //region constants
  static const String name__ = 'TXCAVRoomConfig';

  
  //endregion

  //region creators
  static Future<TXCAVRoomConfig> create__({ bool init = true /* ios only */ }) async {
    final refId = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::createTXCAVRoomConfig', {'init': init});
    final object = TXCAVRoomConfig()..refId = refId..tag__ = 'tencent_live_fluttify';
    return object;
  }
  
  static Future<List<TXCAVRoomConfig>> create_batch__(int length, { bool init = true /* ios only */ }) async {
    if (false) {
      return Future.error('all args must have same length!');
    }
    final List resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('ObjectFactory::create_batchTXCAVRoomConfig', {'length': length, 'init': init});
  
    final List<TXCAVRoomConfig> typedResult = resultBatch.map((result) => TXCAVRoomConfig()..refId = result..tag__ = 'tencent_live_fluttify').toList();
    return typedResult;
  }
  
  //endregion

  //region getters
  Future<bool> get_enableVideoHWAcceleration() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_enableVideoHWAcceleration", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  Future<bool> get_enableAudioHWAcceleration() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_enableAudioHWAcceleration", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  Future<int> get_homeOrientation() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_homeOrientation", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  Future<int> get_renderMode() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_renderMode", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  Future<int> get_videoFPS() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_videoFPS", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  Future<int> get_videoBitrate() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_videoBitrate", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  Future<int> get_videoAspect() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_videoAspect", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  Future<bool> get_frontCamera() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_frontCamera", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  Future<int> get_pauseFps() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_pauseFps", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  Future<UIImage> get_pauseImg() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_pauseImg", {'__this__': this});
    return __result__ == null ? null : (UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify');
  }
  
  Future<bool> get_enablePureAudioPush() async {
    final __result__ = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_enablePureAudioPush", {'__this__': this});
    return __result__ == null ? null : (__result__);
  }
  
  //endregion

  //region setters
  Future<void> set_enableVideoHWAcceleration(bool enableVideoHWAcceleration) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_enableVideoHWAcceleration', <String, dynamic>{'__this__': this, "enableVideoHWAcceleration": enableVideoHWAcceleration});
  
  
  }
  
  Future<void> set_enableAudioHWAcceleration(bool enableAudioHWAcceleration) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_enableAudioHWAcceleration', <String, dynamic>{'__this__': this, "enableAudioHWAcceleration": enableAudioHWAcceleration});
  
  
  }
  
  Future<void> set_homeOrientation(int homeOrientation) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_homeOrientation', <String, dynamic>{'__this__': this, "homeOrientation": homeOrientation});
  
  
  }
  
  Future<void> set_renderMode(int renderMode) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_renderMode', <String, dynamic>{'__this__': this, "renderMode": renderMode});
  
  
  }
  
  Future<void> set_videoFPS(int videoFPS) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_videoFPS', <String, dynamic>{'__this__': this, "videoFPS": videoFPS});
  
  
  }
  
  Future<void> set_videoBitrate(int videoBitrate) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_videoBitrate', <String, dynamic>{'__this__': this, "videoBitrate": videoBitrate});
  
  
  }
  
  Future<void> set_videoAspect(int videoAspect) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_videoAspect', <String, dynamic>{'__this__': this, "videoAspect": videoAspect});
  
  
  }
  
  Future<void> set_frontCamera(bool frontCamera) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_frontCamera', <String, dynamic>{'__this__': this, "frontCamera": frontCamera});
  
  
  }
  
  Future<void> set_pauseFps(int pauseFps) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_pauseFps', <String, dynamic>{'__this__': this, "pauseFps": pauseFps});
  
  
  }
  
  Future<void> set_pauseImg(UIImage pauseImg) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_pauseImg', <String, dynamic>{'__this__': this, "pauseImg": pauseImg});
  
  
  }
  
  Future<void> set_enablePureAudioPush(bool enablePureAudioPush) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod('TXCAVRoomConfig::set_enablePureAudioPush', <String, dynamic>{'__this__': this, "enablePureAudioPush": enablePureAudioPush});
  
  
  }
  
  //endregion

  //region methods
  
  //endregion
}

extension TXCAVRoomConfig_Batch on List<TXCAVRoomConfig> {
  //region getters
  Future<List<bool>> get_enableVideoHWAcceleration_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_enableVideoHWAcceleration_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<bool>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  Future<List<bool>> get_enableAudioHWAcceleration_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_enableAudioHWAcceleration_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<bool>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  Future<List<int>> get_homeOrientation_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_homeOrientation_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<int>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  Future<List<int>> get_renderMode_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_renderMode_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<int>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  Future<List<int>> get_videoFPS_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_videoFPS_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<int>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  Future<List<int>> get_videoBitrate_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_videoBitrate_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<int>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  Future<List<int>> get_videoAspect_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_videoAspect_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<int>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  Future<List<bool>> get_frontCamera_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_frontCamera_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<bool>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  Future<List<int>> get_pauseFps_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_pauseFps_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<int>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  Future<List<UIImage>> get_pauseImg_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_pauseImg_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<String>().map((__result__) => UIImage()..refId = __result__..tag__ = 'tencent_live_fluttify').toList();
    return typedResult;
  }
  
  Future<List<bool>> get_enablePureAudioPush_batch() async {
    final resultBatch = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec('tencent_live_fluttify'))).invokeMethod("TXCAVRoomConfig::get_enablePureAudioPush_batch", [for (final __item__ in this) {'__this__': __item__}]);
  
    final typedResult = (resultBatch as List).cast<bool>().map((__result__) => __result__).toList();
    return typedResult;
  }
  
  //endregion

  //region setters
  Future<void> set_enableVideoHWAcceleration_batch(List<bool> enableVideoHWAcceleration) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_enableVideoHWAcceleration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableVideoHWAcceleration": enableVideoHWAcceleration[__i__]}]);
  
  
  }
  
  Future<void> set_enableAudioHWAcceleration_batch(List<bool> enableAudioHWAcceleration) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_enableAudioHWAcceleration_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enableAudioHWAcceleration": enableAudioHWAcceleration[__i__]}]);
  
  
  }
  
  Future<void> set_homeOrientation_batch(List<int> homeOrientation) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_homeOrientation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "homeOrientation": homeOrientation[__i__]}]);
  
  
  }
  
  Future<void> set_renderMode_batch(List<int> renderMode) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_renderMode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "renderMode": renderMode[__i__]}]);
  
  
  }
  
  Future<void> set_videoFPS_batch(List<int> videoFPS) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_videoFPS_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "videoFPS": videoFPS[__i__]}]);
  
  
  }
  
  Future<void> set_videoBitrate_batch(List<int> videoBitrate) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_videoBitrate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "videoBitrate": videoBitrate[__i__]}]);
  
  
  }
  
  Future<void> set_videoAspect_batch(List<int> videoAspect) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_videoAspect_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "videoAspect": videoAspect[__i__]}]);
  
  
  }
  
  Future<void> set_frontCamera_batch(List<bool> frontCamera) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_frontCamera_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "frontCamera": frontCamera[__i__]}]);
  
  
  }
  
  Future<void> set_pauseFps_batch(List<int> pauseFps) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_pauseFps_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "pauseFps": pauseFps[__i__]}]);
  
  
  }
  
  Future<void> set_pauseImg_batch(List<UIImage> pauseImg) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_pauseImg_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "pauseImg": pauseImg[__i__]}]);
  
  
  }
  
  Future<void> set_enablePureAudioPush_batch(List<bool> enablePureAudioPush) async {
    await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('TXCAVRoomConfig::set_enablePureAudioPush_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "enablePureAudioPush": enablePureAudioPush[__i__]}]);
  
  
  }
  
  //endregion

  //region methods
  
  //endregion
}