// 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:amap_map_fluttify/src/android/android.export.g.dart';
import 'package:flutter/foundation.dart';
import 'package:flutter/services.dart';

import 'package:foundation_fluttify/foundation_fluttify.dart';
import 'package:core_location_fluttify/core_location_fluttify.dart';
import 'package:amap_core_fluttify/amap_core_fluttify.dart';
import 'package:amap_search_fluttify/amap_search_fluttify.dart';
import 'package:amap_location_fluttify/amap_location_fluttify.dart';

class _com_amap_api_maps_model_AMapGestureListener_SUB extends java_lang_Object with com_amap_api_maps_model_AMapGestureListener {}

mixin com_amap_api_maps_model_AMapGestureListener on java_lang_Object {
  

  static com_amap_api_maps_model_AMapGestureListener subInstance() => _com_amap_api_maps_model_AMapGestureListener_SUB();

  static Future<com_amap_api_maps_model_AMapGestureListener> anonymous__() async {
    final __result__ = await kAmapMapFluttifyChannel.invokeMethod('com.amap.api.maps.model.AMapGestureListener::createAnonymous__');
  
    final __object__ = AmapMapFluttifyAndroidAs<com_amap_api_maps_model_AMapGestureListener>(__result__)!;
  
    // handle callback
    MethodChannel('com.amap.api.maps.model.AMapGestureListener::Callback@${__object__.refId}', kAmapMapFluttifyMethodCodec)
        .setMethodCallHandler((methodCall) async {
          try {
            final args = methodCall.arguments as Map;
            switch (methodCall.method) {
              case 'onDoubleTap_':
                // print log
                if (fluttifyLogEnabled) {
                  debugPrint('fluttify-dart-callback: __object__.onDoubleTap?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
                }
            
                // handle the native call
                __object__.onDoubleTap?.call(args['var1'], args['var2']);
                break;
              case 'onSingleTap_':
                // print log
                if (fluttifyLogEnabled) {
                  debugPrint('fluttify-dart-callback: __object__.onSingleTap?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
                }
            
                // handle the native call
                __object__.onSingleTap?.call(args['var1'], args['var2']);
                break;
              case 'onFling_':
                // print log
                if (fluttifyLogEnabled) {
                  debugPrint('fluttify-dart-callback: __object__.onFling?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
                }
            
                // handle the native call
                __object__.onFling?.call(args['var1'], args['var2']);
                break;
              case 'onScroll_':
                // print log
                if (fluttifyLogEnabled) {
                  debugPrint('fluttify-dart-callback: __object__.onScroll?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
                }
            
                // handle the native call
                __object__.onScroll?.call(args['var1'], args['var2']);
                break;
              case 'onLongPress_':
                // print log
                if (fluttifyLogEnabled) {
                  debugPrint('fluttify-dart-callback: __object__.onLongPress?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
                }
            
                // handle the native call
                __object__.onLongPress?.call(args['var1'], args['var2']);
                break;
              case 'onDown_':
                // print log
                if (fluttifyLogEnabled) {
                  debugPrint('fluttify-dart-callback: __object__.onDown?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
                }
            
                // handle the native call
                __object__.onDown?.call(args['var1'], args['var2']);
                break;
              case 'onUp_':
                // print log
                if (fluttifyLogEnabled) {
                  debugPrint('fluttify-dart-callback: __object__.onUp?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}])');
                }
            
                // handle the native call
                __object__.onUp?.call(args['var1'], args['var2']);
                break;
              case 'onMapStable':
                // print log
                if (fluttifyLogEnabled) {
                  debugPrint('fluttify-dart-callback: __object__.onMapStable?.call([])');
                }
            
                // handle the native call
                __object__.onMapStable?.call();
                break;
              default:
                throw MissingPluginException('方法${methodCall.method}未实现');
                break;
            }
          } catch (e) {
            debugPrint(e.toString());
            rethrow;
          }
        });
  
    return __object__;
  }
  

  @override
  final String tag__ = 'amap_map_fluttify';

  

  

  Future<void> Function(double? var1, double? var2)? onDoubleTap;
  
  Future<void> Function(double? var1, double? var2)? onSingleTap;
  
  Future<void> Function(double? var1, double? var2)? onFling;
  
  Future<void> Function(double? var1, double? var2)? onScroll;
  
  Future<void> Function(double? var1, double? var2)? onLongPress;
  
  Future<void> Function(double? var1, double? var2)? onDown;
  
  Future<void> Function(double? var1, double? var2)? onUp;
  
  Future<void> Function()? onMapStable;
  
}

