// 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:io';

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

import 'package:foundation_fluttify/foundation_fluttify.dart';

// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import
extension TypeOpTencentLiveFluttifyAndroid on Object {
  // type check
  Future<bool> is__<T>() async {
    final typeName = T.toString();
    if (RegExp(r'^(List<)?(String|int|double)(>)?|(Map<String,(String|int|double)>)$').hasMatch(typeName)) {
      return this is T;
    }
    else if (T == com_tencent_rtmp_TXLog) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXLog', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_ui_TXDashBoard) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_ui_TXDashBoard', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_ui_TXCloudVideoView) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_ui_TXCloudVideoView', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_ui_TXLogView) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_ui_TXLogView', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_TXLivePlayer) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXLivePlayer', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_video_TXScreenCapture) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_video_TXScreenCapture', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_TXLivePusher) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXLivePusher', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_TXLiveBase) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXLiveBase', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_TXPlayerAuthBuilder) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXPlayerAuthBuilder', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_downloader_TXVodDownloadMediaInfo) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_downloader_TXVodDownloadMediaInfo', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_downloader_TXVodDownloadDataSource) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_downloader_TXVodDownloadDataSource', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_downloader_TXVodDownloadManager) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_downloader_TXVodDownloadManager', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_TXLiveConstants) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXLiveConstants', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_TXLivePushConfig) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXLivePushConfig', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_TXBitrateItem) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXBitrateItem', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_TXLivePlayConfig) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXLivePlayConfig', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_TXVodPlayConfig) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXVodPlayConfig', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_TXImageSprite) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_TXImageSprite', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_sharp_jni_TraeAudioCodecList) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeAudioCodecList', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_sharp_jni_MediaCodecDecoder) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_MediaCodecDecoder', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_sharp_jni_TraeAudioSession) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeAudioSession', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_sharp_jni_TraeAudioSessionHost) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeAudioSessionHost', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_sharp_jni_AudioDecoder) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_AudioDecoder', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_sharp_jni_RingBuffer) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_RingBuffer', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_sharp_jni_QLog) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_QLog', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_sharp_jni_AudioDeviceInterface) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_AudioDeviceInterface', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_sharp_jni_TraeMediaPlayer) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeMediaPlayer', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_sharp_jni_AudioSessionDuplicate) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_AudioSessionDuplicate', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_sharp_jni_MediaCodecEncoder) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_MediaCodecEncoder', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_sharp_jni_TraeAudioSessionHost_SessionInfo) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_TraeAudioSessionHost_SessionInfo', {'__this__': this});
      return result;
    }
    else if (T == com_tencent_rtmp_sharp_jni_VivoKTVHelper) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfcom_tencent_rtmp_sharp_jni_VivoKTVHelper', {'__this__': this});
      return result;
    }
    else if (T == android_content_Context) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_content_Context', {'__this__': this});
      return result;
    }
    else if (T == android_content_Intent) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_content_Intent', {'__this__': this});
      return result;
    }
    else if (T == android_content_ContentProvider) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_content_ContentProvider', {'__this__': this});
      return result;
    }
    else if (T == android_app_Application) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_app_Application', {'__this__': this});
      return result;
    }
    else if (T == android_app_Notification) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_app_Notification', {'__this__': this});
      return result;
    }
    else if (T == android_app_Activity) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_app_Activity', {'__this__': this});
      return result;
    }
    else if (T == android_app_PendingIntent) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_app_PendingIntent', {'__this__': this});
      return result;
    }
    else if (T == android_os_Bundle) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_os_Bundle', {'__this__': this});
      return result;
    }
    else if (T == android_os_Binder) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_os_Binder', {'__this__': this});
      return result;
    }
    else if (T == android_view_View) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_view_View', {'__this__': this});
      return result;
    }
    else if (T == android_view_SurfaceView) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_view_SurfaceView', {'__this__': this});
      return result;
    }
    else if (T == android_view_ViewGroup) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_view_ViewGroup', {'__this__': this});
      return result;
    }
    else if (T == android_graphics_Point) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_graphics_Point', {'__this__': this});
      return result;
    }
    else if (T == android_graphics_PointF) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_graphics_PointF', {'__this__': this});
      return result;
    }
    else if (T == android_graphics_Bitmap) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_graphics_Bitmap', {'__this__': this});
      return result;
    }
    else if (T == android_widget_ImageView) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_widget_ImageView', {'__this__': this});
      return result;
    }
    else if (T == java_io_File) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfjava_io_File', {'__this__': this});
      return result;
    }
    else if (T == android_location_Location) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_location_Location', {'__this__': this});
      return result;
    }
    else if (T == android_view_MotionEvent) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_view_MotionEvent', {'__this__': this});
      return result;
    }
    else if (T == android_graphics_drawable_Drawable) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_graphics_drawable_Drawable', {'__this__': this});
      return result;
    }
    else if (T == android_widget_FrameLayout) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_widget_FrameLayout', {'__this__': this});
      return result;
    }
    else if (T == android_widget_TextView) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_widget_TextView', {'__this__': this});
      return result;
    }
    else if (T == android_widget_LinearLayout) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_widget_LinearLayout', {'__this__': this});
      return result;
    }
    else if (T == android_widget_RelativeLayout) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_widget_RelativeLayout', {'__this__': this});
      return result;
    }
    else if (T == android_util_Pair) {
      final result = await MethodChannel('com.fluttify/tencent_live_fluttify', StandardMethodCodec(FluttifyMessageCodec())).invokeMethod('RefClass::isKindOfandroid_util_Pair', {'__this__': this});
      return result;
    }
  }

  // type cast
  T as__<T>() {
    final typeName = T.toString();
    // jsonable 直接造型 返回
    if (RegExp(r'^(List<)?(String|int|double)(>)?|(Map<String,(String|int|double)>)$').hasMatch(typeName)) {
      return this as T;
    }
    // 如果是Ref类的cast, 那么取其refId, 如果本身是refId, 那么直接使用(int)
    else if (T == com_tencent_rtmp_TXLog) {
      return (com_tencent_rtmp_TXLog()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_ui_TXDashBoard) {
      return (com_tencent_rtmp_ui_TXDashBoard()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_ui_TXCloudVideoView) {
      return (com_tencent_rtmp_ui_TXCloudVideoView()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_ui_TXLogView) {
      return (com_tencent_rtmp_ui_TXLogView()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_TXLivePlayer) {
      return (com_tencent_rtmp_TXLivePlayer()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity) {
      return (com_tencent_rtmp_video_TXScreenCapture_TXScreenCaptureAssistantActivity()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_video_TXScreenCapture) {
      return (com_tencent_rtmp_video_TXScreenCapture()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_TXLivePusher) {
      return (com_tencent_rtmp_TXLivePusher()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_TXLiveBase) {
      return (com_tencent_rtmp_TXLiveBase()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_TXPlayerAuthBuilder) {
      return (com_tencent_rtmp_TXPlayerAuthBuilder()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_downloader_TXVodDownloadMediaInfo) {
      return (com_tencent_rtmp_downloader_TXVodDownloadMediaInfo()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_downloader_TXVodDownloadDataSource) {
      return (com_tencent_rtmp_downloader_TXVodDownloadDataSource()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_downloader_TXVodDownloadManager) {
      return (com_tencent_rtmp_downloader_TXVodDownloadManager()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_TXLiveConstants) {
      return (com_tencent_rtmp_TXLiveConstants()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_TXLivePushConfig) {
      return (com_tencent_rtmp_TXLivePushConfig()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_TXBitrateItem) {
      return (com_tencent_rtmp_TXBitrateItem()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_TXLivePlayConfig) {
      return (com_tencent_rtmp_TXLivePlayConfig()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_TXVodPlayConfig) {
      return (com_tencent_rtmp_TXVodPlayConfig()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_TXImageSprite) {
      return (com_tencent_rtmp_TXImageSprite()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_sharp_jni_TraeAudioCodecList) {
      return (com_tencent_rtmp_sharp_jni_TraeAudioCodecList()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_sharp_jni_MediaCodecDecoder) {
      return (com_tencent_rtmp_sharp_jni_MediaCodecDecoder()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_sharp_jni_TraeAudioSession) {
      return (com_tencent_rtmp_sharp_jni_TraeAudioSession()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_sharp_jni_TraeAudioSessionHost) {
      return (com_tencent_rtmp_sharp_jni_TraeAudioSessionHost()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo) {
      return (com_tencent_rtmp_sharp_jni_TraeAudioCodecList_CodecInfo()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_sharp_jni_AudioDecoder) {
      return (com_tencent_rtmp_sharp_jni_AudioDecoder()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_sharp_jni_RingBuffer) {
      return (com_tencent_rtmp_sharp_jni_RingBuffer()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_sharp_jni_QLog) {
      return (com_tencent_rtmp_sharp_jni_QLog()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_sharp_jni_AudioDeviceInterface) {
      return (com_tencent_rtmp_sharp_jni_AudioDeviceInterface()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_sharp_jni_TraeMediaPlayer) {
      return (com_tencent_rtmp_sharp_jni_TraeMediaPlayer()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_sharp_jni_AudioSessionDuplicate) {
      return (com_tencent_rtmp_sharp_jni_AudioSessionDuplicate()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_sharp_jni_MediaCodecEncoder) {
      return (com_tencent_rtmp_sharp_jni_MediaCodecEncoder()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_sharp_jni_TraeAudioSessionHost_SessionInfo) {
      return (com_tencent_rtmp_sharp_jni_TraeAudioSessionHost_SessionInfo()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == com_tencent_rtmp_sharp_jni_VivoKTVHelper) {
      return (com_tencent_rtmp_sharp_jni_VivoKTVHelper()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_content_Context) {
      return (android_content_Context()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_content_Intent) {
      return (android_content_Intent()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_content_ContentProvider) {
      return (android_content_ContentProvider()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_app_Application) {
      return (android_app_Application()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_app_Notification) {
      return (android_app_Notification()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_app_Activity) {
      return (android_app_Activity()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_app_PendingIntent) {
      return (android_app_PendingIntent()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_os_Bundle) {
      return (android_os_Bundle()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_os_Binder) {
      return (android_os_Binder()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_view_View) {
      return (android_view_View()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_view_SurfaceView) {
      return (android_view_SurfaceView()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_view_ViewGroup) {
      return (android_view_ViewGroup()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_graphics_Point) {
      return (android_graphics_Point()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_graphics_PointF) {
      return (android_graphics_PointF()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_graphics_Bitmap) {
      return (android_graphics_Bitmap()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_widget_ImageView) {
      return (android_widget_ImageView()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == java_io_File) {
      return (java_io_File()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_location_Location) {
      return (android_location_Location()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_view_MotionEvent) {
      return (android_view_MotionEvent()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_graphics_drawable_Drawable) {
      return (android_graphics_drawable_Drawable()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_widget_FrameLayout) {
      return (android_widget_FrameLayout()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_widget_TextView) {
      return (android_widget_TextView()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_widget_LinearLayout) {
      return (android_widget_LinearLayout()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_widget_RelativeLayout) {
      return (android_widget_RelativeLayout()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
    else if (T == android_util_Pair) {
      return (android_util_Pair()..refId = (this is Ref ? (this as Ref).refId : this as String)..tag__ = 'tencent_live_fluttify') as T;
    }
  }
}