AmapCoreFluttifyAndroidIs<T> function

  1. @optionalTypeArgs
Future<bool> AmapCoreFluttifyAndroidIs<T>(
  1. dynamic __this__
)

Implementation

@optionalTypeArgs
Future<bool> AmapCoreFluttifyAndroidIs<T>(dynamic __this__) 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 == android_content_Context) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_content_Context', {'__this__': __this__});
    return result;
  } else if (T == android_content_Intent) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_content_Intent', {'__this__': __this__});
    return result;
  } else if (T == android_content_ContentProvider) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_content_ContentProvider', {'__this__': __this__});
    return result;
  } else if (T == android_app_Application) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_app_Application', {'__this__': __this__});
    return result;
  } else if (T == android_app_Notification) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_app_Notification', {'__this__': __this__});
    return result;
  } else if (T == android_app_Activity) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_app_Activity', {'__this__': __this__});
    return result;
  } else if (T == android_app_PendingIntent) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_app_PendingIntent', {'__this__': __this__});
    return result;
  } else if (T == android_os_Bundle) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_os_Bundle', {'__this__': __this__});
    return result;
  } else if (T == android_os_Binder) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_os_Binder', {'__this__': __this__});
    return result;
  } else if (T == android_view_View) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_View', {'__this__': __this__});
    return result;
  } else if (T == android_view_SurfaceView) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_SurfaceView', {'__this__': __this__});
    return result;
  } else if (T == android_view_SurfaceHolder) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_SurfaceHolder', {'__this__': __this__});
    return result;
  } else if (T == android_opengl_GLSurfaceView) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_opengl_GLSurfaceView', {'__this__': __this__});
    return result;
  } else if (T == android_view_View_OnApplyWindowInsetsListener) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_View_OnApplyWindowInsetsListener', {'__this__': __this__});
    return result;
  } else if (T == android_view_ViewGroup) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_ViewGroup', {'__this__': __this__});
    return result;
  } else if (T == android_graphics_Point) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_graphics_Point', {'__this__': __this__});
    return result;
  } else if (T == android_graphics_PointF) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_graphics_PointF', {'__this__': __this__});
    return result;
  } else if (T == android_graphics_Bitmap) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_graphics_Bitmap', {'__this__': __this__});
    return result;
  } else if (T == android_widget_ImageView) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_widget_ImageView', {'__this__': __this__});
    return result;
  } else if (T == java_io_Serializable) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfjava_io_Serializable', {'__this__': __this__});
    return result;
  } else if (T == java_io_File) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfjava_io_File', {'__this__': __this__});
    return result;
  } else if (T == android_location_Location) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_location_Location', {'__this__': __this__});
    return result;
  } else if (T == android_view_MotionEvent) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_MotionEvent', {'__this__': __this__});
    return result;
  } else if (T == android_graphics_drawable_Drawable) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_graphics_drawable_Drawable', {'__this__': __this__});
    return result;
  } else if (T == android_widget_FrameLayout) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_widget_FrameLayout', {'__this__': __this__});
    return result;
  } else if (T == android_widget_TextView) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_widget_TextView', {'__this__': __this__});
    return result;
  } else if (T == android_widget_LinearLayout) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_widget_LinearLayout', {'__this__': __this__});
    return result;
  } else if (T == android_widget_RelativeLayout) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_widget_RelativeLayout', {'__this__': __this__});
    return result;
  } else if (T == android_os_Parcelable) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_os_Parcelable', {'__this__': __this__});
    return result;
  } else if (T == android_util_Pair) {
    final result = await kAmapCoreFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_util_Pair', {'__this__': __this__});
    return result;
  }
  else {
    return false;
  }
}