2617 lines
118 KiB
Objective-C
2617 lines
118 KiB
Objective-C
//////////////////////////////////////////////////////////
|
|
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
|
//////////////////////////////////////////////////////////
|
|
|
|
#import "SubHandler1.h"
|
|
#import "FluttifyMessageCodec.h"
|
|
#import <AMapLocationKit/AMapLocationKit.h>
|
|
#import "AMapGeoFenceManagerDelegate_Anonymous.h"
|
|
#import "AMapLocationManagerDelegate_Anonymous.h"
|
|
|
|
// Dart端一次方法调用所存在的栈, 只有当MethodChannel传递参数受限时, 再启用这个容器
|
|
extern NSMutableDictionary<NSString*, NSObject*>* STACK;
|
|
// Dart端随机存取对象的容器
|
|
extern NSMutableDictionary<NSString*, NSObject*>* HEAP;
|
|
// 日志打印开关
|
|
extern BOOL enableLog;
|
|
|
|
@implementation AmapLocationFluttifyPlugin (SubHandler1)
|
|
- (NSDictionary<NSString*, Handler>*) getSubHandler1 {
|
|
__weak __typeof(self)weakSelf = self;
|
|
return @{
|
|
@"AMapLocationManager::set_distanceFilter": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationManager::set_distanceFilter");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
CLLocationDistance distanceFilter = [args[@"distanceFilter"] doubleValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.distanceFilter = distanceFilter;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_desiredAccuracy": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationManager::set_desiredAccuracy");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
CLLocationAccuracy desiredAccuracy = [args[@"desiredAccuracy"] doubleValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.desiredAccuracy = desiredAccuracy;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_pausesLocationUpdatesAutomatically": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationManager::set_pausesLocationUpdatesAutomatically");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
BOOL pausesLocationUpdatesAutomatically = [args[@"pausesLocationUpdatesAutomatically"] boolValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.pausesLocationUpdatesAutomatically = pausesLocationUpdatesAutomatically;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_allowsBackgroundLocationUpdates": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationManager::set_allowsBackgroundLocationUpdates");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
BOOL allowsBackgroundLocationUpdates = [args[@"allowsBackgroundLocationUpdates"] boolValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.allowsBackgroundLocationUpdates = allowsBackgroundLocationUpdates;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_locationTimeout": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationManager::set_locationTimeout");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSInteger locationTimeout = [args[@"locationTimeout"] longValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.locationTimeout = locationTimeout;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_reGeocodeTimeout": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationManager::set_reGeocodeTimeout");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSInteger reGeocodeTimeout = [args[@"reGeocodeTimeout"] longValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.reGeocodeTimeout = reGeocodeTimeout;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_locatingWithReGeocode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationManager::set_locatingWithReGeocode");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
BOOL locatingWithReGeocode = [args[@"locatingWithReGeocode"] boolValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.locatingWithReGeocode = locatingWithReGeocode;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_reGeocodeLanguage": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationManager::set_reGeocodeLanguage");
|
|
}
|
|
|
|
// args
|
|
// enum arg
|
|
AMapLocationReGeocodeLanguage reGeocodeLanguage = (AMapLocationReGeocodeLanguage) [args[@"reGeocodeLanguage"] integerValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.reGeocodeLanguage = reGeocodeLanguage;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_detectRiskOfFakeLocation": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationManager::set_detectRiskOfFakeLocation");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
BOOL detectRiskOfFakeLocation = [args[@"detectRiskOfFakeLocation"] boolValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.detectRiskOfFakeLocation = detectRiskOfFakeLocation;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_locationAccuracyMode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationManager::set_locationAccuracyMode");
|
|
}
|
|
|
|
// args
|
|
// enum arg
|
|
AMapLocationAccuracyMode locationAccuracyMode = (AMapLocationAccuracyMode) [args[@"locationAccuracyMode"] integerValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.locationAccuracyMode = locationAccuracyMode;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_formattedAddress": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationReGeocode::set_formattedAddress");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* formattedAddress = (NSString*) args[@"formattedAddress"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.formattedAddress = formattedAddress;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_country": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationReGeocode::set_country");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* country = (NSString*) args[@"country"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.country = country;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_province": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationReGeocode::set_province");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* province = (NSString*) args[@"province"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.province = province;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_city": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationReGeocode::set_city");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* city = (NSString*) args[@"city"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.city = city;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_district": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationReGeocode::set_district");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* district = (NSString*) args[@"district"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.district = district;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_township": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationReGeocode::set_township");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* township = (NSString*) args[@"township"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.township = township;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_neighborhood": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationReGeocode::set_neighborhood");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* neighborhood = (NSString*) args[@"neighborhood"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.neighborhood = neighborhood;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_building": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationReGeocode::set_building");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* building = (NSString*) args[@"building"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.building = building;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_citycode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationReGeocode::set_citycode");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* citycode = (NSString*) args[@"citycode"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.citycode = citycode;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_adcode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationReGeocode::set_adcode");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* adcode = (NSString*) args[@"adcode"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.adcode = adcode;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_street": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationReGeocode::set_street");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* street = (NSString*) args[@"street"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.street = street;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_number": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationReGeocode::set_number");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* number = (NSString*) args[@"number"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.number = number;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_POIName": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationReGeocode::set_POIName");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* POIName = (NSString*) args[@"POIName"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.POIName = POIName;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_AOIName": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationReGeocode::set_AOIName");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* AOIName = (NSString*) args[@"AOIName"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.AOIName = AOIName;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPoint::set_latitude": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationPoint::set_latitude");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
CGFloat latitude = [args[@"latitude"] floatValue];
|
|
|
|
// ref
|
|
AMapLocationPoint* ref = (AMapLocationPoint*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.latitude = latitude;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPoint::set_longitude": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationPoint::set_longitude");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
CGFloat longitude = [args[@"longitude"] floatValue];
|
|
|
|
// ref
|
|
AMapLocationPoint* ref = (AMapLocationPoint*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.longitude = longitude;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_pId": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationPOIItem::set_pId");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* pId = (NSString*) args[@"pId"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.pId = pId;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_name": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationPOIItem::set_name");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* name = (NSString*) args[@"name"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.name = name;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_type": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationPOIItem::set_type");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* type = (NSString*) args[@"type"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.type = type;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_typeCode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationPOIItem::set_typeCode");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* typeCode = (NSString*) args[@"typeCode"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.typeCode = typeCode;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_address": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationPOIItem::set_address");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* address = (NSString*) args[@"address"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.address = address;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_location": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationPOIItem::set_location");
|
|
}
|
|
|
|
// args
|
|
// ref arg
|
|
AMapLocationPoint* location = (AMapLocationPoint*) (args[@"location"] == [NSNull null] ? nil : args[@"location"]);
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.location = location;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_tel": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationPOIItem::set_tel");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* tel = (NSString*) args[@"tel"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.tel = tel;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_province": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationPOIItem::set_province");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* province = (NSString*) args[@"province"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.province = province;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_city": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationPOIItem::set_city");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* city = (NSString*) args[@"city"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.city = city;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_district": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationPOIItem::set_district");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* district = (NSString*) args[@"district"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.district = district;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationDistrictItem::set_cityCode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationDistrictItem::set_cityCode");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* cityCode = (NSString*) args[@"cityCode"];
|
|
|
|
// ref
|
|
AMapLocationDistrictItem* ref = (AMapLocationDistrictItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.cityCode = cityCode;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationDistrictItem::set_districtCode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationDistrictItem::set_districtCode");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* districtCode = (NSString*) args[@"districtCode"];
|
|
|
|
// ref
|
|
AMapLocationDistrictItem* ref = (AMapLocationDistrictItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.districtCode = districtCode;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationDistrictItem::set_district": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"AMapLocationDistrictItem::set_district");
|
|
}
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* district = (NSString*) args[@"district"];
|
|
|
|
// ref
|
|
AMapLocationDistrictItem* ref = (AMapLocationDistrictItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.district = district;
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapGeoFenceManager::set_activeAction_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// enum arg
|
|
AMapGeoFenceActiveAction activeAction = (AMapGeoFenceActiveAction) [args[@"activeAction"] integerValue];
|
|
|
|
// ref
|
|
AMapGeoFenceManager* ref = (AMapGeoFenceManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.activeAction = activeAction;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapGeoFenceManager::set_pausesLocationUpdatesAutomatically_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
BOOL pausesLocationUpdatesAutomatically = [args[@"pausesLocationUpdatesAutomatically"] boolValue];
|
|
|
|
// ref
|
|
AMapGeoFenceManager* ref = (AMapGeoFenceManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.pausesLocationUpdatesAutomatically = pausesLocationUpdatesAutomatically;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapGeoFenceManager::set_allowsBackgroundLocationUpdates_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
BOOL allowsBackgroundLocationUpdates = [args[@"allowsBackgroundLocationUpdates"] boolValue];
|
|
|
|
// ref
|
|
AMapGeoFenceManager* ref = (AMapGeoFenceManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.allowsBackgroundLocationUpdates = allowsBackgroundLocationUpdates;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapGeoFenceManager::set_detectRiskOfFakeLocation_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
BOOL detectRiskOfFakeLocation = [args[@"detectRiskOfFakeLocation"] boolValue];
|
|
|
|
// ref
|
|
AMapGeoFenceManager* ref = (AMapGeoFenceManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.detectRiskOfFakeLocation = detectRiskOfFakeLocation;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationRegion::set_notifyOnEntry_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
BOOL notifyOnEntry = [args[@"notifyOnEntry"] boolValue];
|
|
|
|
// ref
|
|
AMapLocationRegion* ref = (AMapLocationRegion*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.notifyOnEntry = notifyOnEntry;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationRegion::set_notifyOnExit_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
BOOL notifyOnExit = [args[@"notifyOnExit"] boolValue];
|
|
|
|
// ref
|
|
AMapLocationRegion* ref = (AMapLocationRegion*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.notifyOnExit = notifyOnExit;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapGeoFenceRegion::set_fenceStatus_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// enum arg
|
|
AMapGeoFenceRegionStatus fenceStatus = (AMapGeoFenceRegionStatus) [args[@"fenceStatus"] integerValue];
|
|
|
|
// ref
|
|
AMapGeoFenceRegion* ref = (AMapGeoFenceRegion*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.fenceStatus = fenceStatus;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapGeoFenceRegion::set_regionType_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// enum arg
|
|
AMapGeoFenceRegionType regionType = (AMapGeoFenceRegionType) [args[@"regionType"] integerValue];
|
|
|
|
// ref
|
|
AMapGeoFenceRegion* ref = (AMapGeoFenceRegion*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.regionType = regionType;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapGeoFenceRegion::set_currentLocation_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// ref arg
|
|
CLLocation* currentLocation = (CLLocation*) (args[@"currentLocation"] == [NSNull null] ? nil : args[@"currentLocation"]);
|
|
|
|
// ref
|
|
AMapGeoFenceRegion* ref = (AMapGeoFenceRegion*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.currentLocation = currentLocation;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_distanceFilter_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
CLLocationDistance distanceFilter = [args[@"distanceFilter"] doubleValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.distanceFilter = distanceFilter;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_desiredAccuracy_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
CLLocationAccuracy desiredAccuracy = [args[@"desiredAccuracy"] doubleValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.desiredAccuracy = desiredAccuracy;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_pausesLocationUpdatesAutomatically_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
BOOL pausesLocationUpdatesAutomatically = [args[@"pausesLocationUpdatesAutomatically"] boolValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.pausesLocationUpdatesAutomatically = pausesLocationUpdatesAutomatically;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_allowsBackgroundLocationUpdates_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
BOOL allowsBackgroundLocationUpdates = [args[@"allowsBackgroundLocationUpdates"] boolValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.allowsBackgroundLocationUpdates = allowsBackgroundLocationUpdates;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_locationTimeout_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSInteger locationTimeout = [args[@"locationTimeout"] longValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.locationTimeout = locationTimeout;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_reGeocodeTimeout_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSInteger reGeocodeTimeout = [args[@"reGeocodeTimeout"] longValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.reGeocodeTimeout = reGeocodeTimeout;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_locatingWithReGeocode_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
BOOL locatingWithReGeocode = [args[@"locatingWithReGeocode"] boolValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.locatingWithReGeocode = locatingWithReGeocode;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_reGeocodeLanguage_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// enum arg
|
|
AMapLocationReGeocodeLanguage reGeocodeLanguage = (AMapLocationReGeocodeLanguage) [args[@"reGeocodeLanguage"] integerValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.reGeocodeLanguage = reGeocodeLanguage;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_detectRiskOfFakeLocation_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
BOOL detectRiskOfFakeLocation = [args[@"detectRiskOfFakeLocation"] boolValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.detectRiskOfFakeLocation = detectRiskOfFakeLocation;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationManager::set_locationAccuracyMode_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// enum arg
|
|
AMapLocationAccuracyMode locationAccuracyMode = (AMapLocationAccuracyMode) [args[@"locationAccuracyMode"] integerValue];
|
|
|
|
// ref
|
|
AMapLocationManager* ref = (AMapLocationManager*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.locationAccuracyMode = locationAccuracyMode;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_formattedAddress_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* formattedAddress = (NSString*) args[@"formattedAddress"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.formattedAddress = formattedAddress;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_country_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* country = (NSString*) args[@"country"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.country = country;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_province_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* province = (NSString*) args[@"province"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.province = province;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_city_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* city = (NSString*) args[@"city"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.city = city;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_district_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* district = (NSString*) args[@"district"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.district = district;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_township_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* township = (NSString*) args[@"township"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.township = township;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_neighborhood_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* neighborhood = (NSString*) args[@"neighborhood"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.neighborhood = neighborhood;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_building_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* building = (NSString*) args[@"building"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.building = building;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_citycode_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* citycode = (NSString*) args[@"citycode"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.citycode = citycode;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_adcode_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* adcode = (NSString*) args[@"adcode"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.adcode = adcode;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_street_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* street = (NSString*) args[@"street"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.street = street;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_number_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* number = (NSString*) args[@"number"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.number = number;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_POIName_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* POIName = (NSString*) args[@"POIName"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.POIName = POIName;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationReGeocode::set_AOIName_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* AOIName = (NSString*) args[@"AOIName"];
|
|
|
|
// ref
|
|
AMapLocationReGeocode* ref = (AMapLocationReGeocode*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.AOIName = AOIName;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPoint::set_latitude_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
CGFloat latitude = [args[@"latitude"] floatValue];
|
|
|
|
// ref
|
|
AMapLocationPoint* ref = (AMapLocationPoint*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.latitude = latitude;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPoint::set_longitude_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
CGFloat longitude = [args[@"longitude"] floatValue];
|
|
|
|
// ref
|
|
AMapLocationPoint* ref = (AMapLocationPoint*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.longitude = longitude;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_pId_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* pId = (NSString*) args[@"pId"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.pId = pId;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_name_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* name = (NSString*) args[@"name"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.name = name;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_type_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* type = (NSString*) args[@"type"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.type = type;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_typeCode_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* typeCode = (NSString*) args[@"typeCode"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.typeCode = typeCode;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_address_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* address = (NSString*) args[@"address"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.address = address;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_location_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// ref arg
|
|
AMapLocationPoint* location = (AMapLocationPoint*) (args[@"location"] == [NSNull null] ? nil : args[@"location"]);
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.location = location;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_tel_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* tel = (NSString*) args[@"tel"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.tel = tel;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_province_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* province = (NSString*) args[@"province"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.province = province;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_city_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* city = (NSString*) args[@"city"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.city = city;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationPOIItem::set_district_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* district = (NSString*) args[@"district"];
|
|
|
|
// ref
|
|
AMapLocationPOIItem* ref = (AMapLocationPOIItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.district = district;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationDistrictItem::set_cityCode_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* cityCode = (NSString*) args[@"cityCode"];
|
|
|
|
// ref
|
|
AMapLocationDistrictItem* ref = (AMapLocationDistrictItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.cityCode = cityCode;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationDistrictItem::set_districtCode_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* districtCode = (NSString*) args[@"districtCode"];
|
|
|
|
// ref
|
|
AMapLocationDistrictItem* ref = (AMapLocationDistrictItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.districtCode = districtCode;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"AMapLocationDistrictItem::set_district_batch": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
for (NSUInteger __i__ = 0; __i__ < ((NSArray<NSDictionary<NSString*, NSObject*>*>*) argsBatch).count; __i__++) {
|
|
NSDictionary<NSString*, id>* args = [((NSArray<NSDictionary<NSString*, id>*>*) argsBatch) objectAtIndex:__i__];
|
|
|
|
// args
|
|
// jsonable arg
|
|
NSString* district = (NSString*) args[@"district"];
|
|
|
|
// ref
|
|
AMapLocationDistrictItem* ref = (AMapLocationDistrictItem*) args[@"__this__"];
|
|
if ((NSNull *) ref == [NSNull null] || ref == nil) {
|
|
methodResult([FlutterError errorWithCode:@"目标对象为nil" message:@"目标对象为nil" details:@"目标对象为nil"]);
|
|
return;
|
|
}
|
|
|
|
ref.district = district;;
|
|
methodResult(@"success");
|
|
}
|
|
|
|
methodResult(@"success");
|
|
},
|
|
|
|
@"RefClass::isKindOfAMapGeoFenceManager": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// 引用对象
|
|
NSObject* __this__ = ((NSDictionary<NSString*, NSObject*>*) args)[@"__this__"];
|
|
|
|
BOOL isTargetType = [__this__ isKindOfClass:[AMapGeoFenceManager class]];
|
|
methodResult(@(isTargetType));
|
|
},
|
|
|
|
@"RefClass::isKindOfAMapLocationRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// 引用对象
|
|
NSObject* __this__ = ((NSDictionary<NSString*, NSObject*>*) args)[@"__this__"];
|
|
|
|
BOOL isTargetType = [__this__ isKindOfClass:[AMapLocationRegion class]];
|
|
methodResult(@(isTargetType));
|
|
},
|
|
|
|
@"RefClass::isKindOfAMapLocationCircleRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// 引用对象
|
|
NSObject* __this__ = ((NSDictionary<NSString*, NSObject*>*) args)[@"__this__"];
|
|
|
|
BOOL isTargetType = [__this__ isKindOfClass:[AMapLocationCircleRegion class]];
|
|
methodResult(@(isTargetType));
|
|
},
|
|
|
|
@"RefClass::isKindOfAMapLocationPolygonRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// 引用对象
|
|
NSObject* __this__ = ((NSDictionary<NSString*, NSObject*>*) args)[@"__this__"];
|
|
|
|
BOOL isTargetType = [__this__ isKindOfClass:[AMapLocationPolygonRegion class]];
|
|
methodResult(@(isTargetType));
|
|
},
|
|
|
|
@"RefClass::isKindOfAMapGeoFenceRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// 引用对象
|
|
NSObject* __this__ = ((NSDictionary<NSString*, NSObject*>*) args)[@"__this__"];
|
|
|
|
BOOL isTargetType = [__this__ isKindOfClass:[AMapGeoFenceRegion class]];
|
|
methodResult(@(isTargetType));
|
|
},
|
|
|
|
@"RefClass::isKindOfAMapGeoFenceCircleRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// 引用对象
|
|
NSObject* __this__ = ((NSDictionary<NSString*, NSObject*>*) args)[@"__this__"];
|
|
|
|
BOOL isTargetType = [__this__ isKindOfClass:[AMapGeoFenceCircleRegion class]];
|
|
methodResult(@(isTargetType));
|
|
},
|
|
|
|
@"RefClass::isKindOfAMapGeoFencePolygonRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// 引用对象
|
|
NSObject* __this__ = ((NSDictionary<NSString*, NSObject*>*) args)[@"__this__"];
|
|
|
|
BOOL isTargetType = [__this__ isKindOfClass:[AMapGeoFencePolygonRegion class]];
|
|
methodResult(@(isTargetType));
|
|
},
|
|
|
|
@"RefClass::isKindOfAMapGeoFencePOIRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// 引用对象
|
|
NSObject* __this__ = ((NSDictionary<NSString*, NSObject*>*) args)[@"__this__"];
|
|
|
|
BOOL isTargetType = [__this__ isKindOfClass:[AMapGeoFencePOIRegion class]];
|
|
methodResult(@(isTargetType));
|
|
},
|
|
|
|
@"RefClass::isKindOfAMapGeoFenceDistrictRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// 引用对象
|
|
NSObject* __this__ = ((NSDictionary<NSString*, NSObject*>*) args)[@"__this__"];
|
|
|
|
BOOL isTargetType = [__this__ isKindOfClass:[AMapGeoFenceDistrictRegion class]];
|
|
methodResult(@(isTargetType));
|
|
},
|
|
|
|
@"RefClass::isKindOfAMapLocationManager": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// 引用对象
|
|
NSObject* __this__ = ((NSDictionary<NSString*, NSObject*>*) args)[@"__this__"];
|
|
|
|
BOOL isTargetType = [__this__ isKindOfClass:[AMapLocationManager class]];
|
|
methodResult(@(isTargetType));
|
|
},
|
|
|
|
@"RefClass::isKindOfAMapLocationReGeocode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// 引用对象
|
|
NSObject* __this__ = ((NSDictionary<NSString*, NSObject*>*) args)[@"__this__"];
|
|
|
|
BOOL isTargetType = [__this__ isKindOfClass:[AMapLocationReGeocode class]];
|
|
methodResult(@(isTargetType));
|
|
},
|
|
|
|
@"RefClass::isKindOfAMapLocationPoint": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// 引用对象
|
|
NSObject* __this__ = ((NSDictionary<NSString*, NSObject*>*) args)[@"__this__"];
|
|
|
|
BOOL isTargetType = [__this__ isKindOfClass:[AMapLocationPoint class]];
|
|
methodResult(@(isTargetType));
|
|
},
|
|
|
|
@"RefClass::isKindOfAMapLocationPOIItem": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// 引用对象
|
|
NSObject* __this__ = ((NSDictionary<NSString*, NSObject*>*) args)[@"__this__"];
|
|
|
|
BOOL isTargetType = [__this__ isKindOfClass:[AMapLocationPOIItem class]];
|
|
methodResult(@(isTargetType));
|
|
},
|
|
|
|
@"RefClass::isKindOfAMapLocationDistrictItem": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// 引用对象
|
|
NSObject* __this__ = ((NSDictionary<NSString*, NSObject*>*) args)[@"__this__"];
|
|
|
|
BOOL isTargetType = [__this__ isKindOfClass:[AMapLocationDistrictItem class]];
|
|
methodResult(@(isTargetType));
|
|
},
|
|
|
|
@"ObjectFactory::createAMapGeoFenceManager": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"ObjectFactory::createAMapGeoFenceManager");
|
|
}
|
|
|
|
AMapGeoFenceManager* __this__;
|
|
if ([((NSDictionary<NSString*, id>*) args)[@"init"] boolValue]) {
|
|
__this__ = [[AMapGeoFenceManager alloc] init];
|
|
} else {
|
|
__this__ = [AMapGeoFenceManager alloc];
|
|
}
|
|
|
|
methodResult(__this__);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::createAMapLocationRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"ObjectFactory::createAMapLocationRegion");
|
|
}
|
|
|
|
AMapLocationRegion* __this__;
|
|
if ([((NSDictionary<NSString*, id>*) args)[@"init"] boolValue]) {
|
|
__this__ = [[AMapLocationRegion alloc] init];
|
|
} else {
|
|
__this__ = [AMapLocationRegion alloc];
|
|
}
|
|
|
|
methodResult(__this__);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::createAMapLocationCircleRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"ObjectFactory::createAMapLocationCircleRegion");
|
|
}
|
|
|
|
AMapLocationCircleRegion* __this__;
|
|
if ([((NSDictionary<NSString*, id>*) args)[@"init"] boolValue]) {
|
|
__this__ = [[AMapLocationCircleRegion alloc] init];
|
|
} else {
|
|
__this__ = [AMapLocationCircleRegion alloc];
|
|
}
|
|
|
|
methodResult(__this__);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::createAMapLocationPolygonRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"ObjectFactory::createAMapLocationPolygonRegion");
|
|
}
|
|
|
|
AMapLocationPolygonRegion* __this__;
|
|
if ([((NSDictionary<NSString*, id>*) args)[@"init"] boolValue]) {
|
|
__this__ = [[AMapLocationPolygonRegion alloc] init];
|
|
} else {
|
|
__this__ = [AMapLocationPolygonRegion alloc];
|
|
}
|
|
|
|
methodResult(__this__);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::createAMapGeoFenceRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"ObjectFactory::createAMapGeoFenceRegion");
|
|
}
|
|
|
|
AMapGeoFenceRegion* __this__;
|
|
if ([((NSDictionary<NSString*, id>*) args)[@"init"] boolValue]) {
|
|
__this__ = [[AMapGeoFenceRegion alloc] init];
|
|
} else {
|
|
__this__ = [AMapGeoFenceRegion alloc];
|
|
}
|
|
|
|
methodResult(__this__);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::createAMapGeoFenceCircleRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"ObjectFactory::createAMapGeoFenceCircleRegion");
|
|
}
|
|
|
|
AMapGeoFenceCircleRegion* __this__;
|
|
if ([((NSDictionary<NSString*, id>*) args)[@"init"] boolValue]) {
|
|
__this__ = [[AMapGeoFenceCircleRegion alloc] init];
|
|
} else {
|
|
__this__ = [AMapGeoFenceCircleRegion alloc];
|
|
}
|
|
|
|
methodResult(__this__);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::createAMapGeoFencePolygonRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"ObjectFactory::createAMapGeoFencePolygonRegion");
|
|
}
|
|
|
|
AMapGeoFencePolygonRegion* __this__;
|
|
if ([((NSDictionary<NSString*, id>*) args)[@"init"] boolValue]) {
|
|
__this__ = [[AMapGeoFencePolygonRegion alloc] init];
|
|
} else {
|
|
__this__ = [AMapGeoFencePolygonRegion alloc];
|
|
}
|
|
|
|
methodResult(__this__);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::createAMapGeoFencePOIRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"ObjectFactory::createAMapGeoFencePOIRegion");
|
|
}
|
|
|
|
AMapGeoFencePOIRegion* __this__;
|
|
if ([((NSDictionary<NSString*, id>*) args)[@"init"] boolValue]) {
|
|
__this__ = [[AMapGeoFencePOIRegion alloc] init];
|
|
} else {
|
|
__this__ = [AMapGeoFencePOIRegion alloc];
|
|
}
|
|
|
|
methodResult(__this__);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::createAMapGeoFenceDistrictRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"ObjectFactory::createAMapGeoFenceDistrictRegion");
|
|
}
|
|
|
|
AMapGeoFenceDistrictRegion* __this__;
|
|
if ([((NSDictionary<NSString*, id>*) args)[@"init"] boolValue]) {
|
|
__this__ = [[AMapGeoFenceDistrictRegion alloc] init];
|
|
} else {
|
|
__this__ = [AMapGeoFenceDistrictRegion alloc];
|
|
}
|
|
|
|
methodResult(__this__);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::createAMapLocationManager": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"ObjectFactory::createAMapLocationManager");
|
|
}
|
|
|
|
AMapLocationManager* __this__;
|
|
if ([((NSDictionary<NSString*, id>*) args)[@"init"] boolValue]) {
|
|
__this__ = [[AMapLocationManager alloc] init];
|
|
} else {
|
|
__this__ = [AMapLocationManager alloc];
|
|
}
|
|
|
|
methodResult(__this__);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::createAMapLocationReGeocode": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"ObjectFactory::createAMapLocationReGeocode");
|
|
}
|
|
|
|
AMapLocationReGeocode* __this__;
|
|
if ([((NSDictionary<NSString*, id>*) args)[@"init"] boolValue]) {
|
|
__this__ = [[AMapLocationReGeocode alloc] init];
|
|
} else {
|
|
__this__ = [AMapLocationReGeocode alloc];
|
|
}
|
|
|
|
methodResult(__this__);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::createAMapLocationPoint": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"ObjectFactory::createAMapLocationPoint");
|
|
}
|
|
|
|
AMapLocationPoint* __this__;
|
|
if ([((NSDictionary<NSString*, id>*) args)[@"init"] boolValue]) {
|
|
__this__ = [[AMapLocationPoint alloc] init];
|
|
} else {
|
|
__this__ = [AMapLocationPoint alloc];
|
|
}
|
|
|
|
methodResult(__this__);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::createAMapLocationPOIItem": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"ObjectFactory::createAMapLocationPOIItem");
|
|
}
|
|
|
|
AMapLocationPOIItem* __this__;
|
|
if ([((NSDictionary<NSString*, id>*) args)[@"init"] boolValue]) {
|
|
__this__ = [[AMapLocationPOIItem alloc] init];
|
|
} else {
|
|
__this__ = [AMapLocationPOIItem alloc];
|
|
}
|
|
|
|
methodResult(__this__);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::createAMapLocationDistrictItem": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
// print log
|
|
if (enableLog) {
|
|
NSLog(@"ObjectFactory::createAMapLocationDistrictItem");
|
|
}
|
|
|
|
AMapLocationDistrictItem* __this__;
|
|
if ([((NSDictionary<NSString*, id>*) args)[@"init"] boolValue]) {
|
|
__this__ = [[AMapLocationDistrictItem alloc] init];
|
|
} else {
|
|
__this__ = [AMapLocationDistrictItem alloc];
|
|
}
|
|
|
|
methodResult(__this__);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::create_batchAMapGeoFenceManager": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
NSMutableArray<NSObject*>* resultList = [NSMutableArray array];
|
|
|
|
NSNumber* length = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"length"];
|
|
NSNumber* init = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"init"];
|
|
for (NSUInteger __i__ = 0; __i__ < [length integerValue]; __i__++) {
|
|
AMapGeoFenceManager* __this__;
|
|
if ([init boolValue]) {
|
|
__this__ = [[AMapGeoFenceManager alloc] init];
|
|
} else {
|
|
__this__ = [AMapGeoFenceManager alloc];
|
|
}
|
|
[resultList addObject:__this__];
|
|
}
|
|
|
|
methodResult(resultList);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::create_batchAMapLocationRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
NSMutableArray<NSObject*>* resultList = [NSMutableArray array];
|
|
|
|
NSNumber* length = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"length"];
|
|
NSNumber* init = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"init"];
|
|
for (NSUInteger __i__ = 0; __i__ < [length integerValue]; __i__++) {
|
|
AMapLocationRegion* __this__;
|
|
if ([init boolValue]) {
|
|
__this__ = [[AMapLocationRegion alloc] init];
|
|
} else {
|
|
__this__ = [AMapLocationRegion alloc];
|
|
}
|
|
[resultList addObject:__this__];
|
|
}
|
|
|
|
methodResult(resultList);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::create_batchAMapLocationCircleRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
NSMutableArray<NSObject*>* resultList = [NSMutableArray array];
|
|
|
|
NSNumber* length = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"length"];
|
|
NSNumber* init = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"init"];
|
|
for (NSUInteger __i__ = 0; __i__ < [length integerValue]; __i__++) {
|
|
AMapLocationCircleRegion* __this__;
|
|
if ([init boolValue]) {
|
|
__this__ = [[AMapLocationCircleRegion alloc] init];
|
|
} else {
|
|
__this__ = [AMapLocationCircleRegion alloc];
|
|
}
|
|
[resultList addObject:__this__];
|
|
}
|
|
|
|
methodResult(resultList);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::create_batchAMapLocationPolygonRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
NSMutableArray<NSObject*>* resultList = [NSMutableArray array];
|
|
|
|
NSNumber* length = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"length"];
|
|
NSNumber* init = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"init"];
|
|
for (NSUInteger __i__ = 0; __i__ < [length integerValue]; __i__++) {
|
|
AMapLocationPolygonRegion* __this__;
|
|
if ([init boolValue]) {
|
|
__this__ = [[AMapLocationPolygonRegion alloc] init];
|
|
} else {
|
|
__this__ = [AMapLocationPolygonRegion alloc];
|
|
}
|
|
[resultList addObject:__this__];
|
|
}
|
|
|
|
methodResult(resultList);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::create_batchAMapGeoFenceRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
NSMutableArray<NSObject*>* resultList = [NSMutableArray array];
|
|
|
|
NSNumber* length = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"length"];
|
|
NSNumber* init = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"init"];
|
|
for (NSUInteger __i__ = 0; __i__ < [length integerValue]; __i__++) {
|
|
AMapGeoFenceRegion* __this__;
|
|
if ([init boolValue]) {
|
|
__this__ = [[AMapGeoFenceRegion alloc] init];
|
|
} else {
|
|
__this__ = [AMapGeoFenceRegion alloc];
|
|
}
|
|
[resultList addObject:__this__];
|
|
}
|
|
|
|
methodResult(resultList);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::create_batchAMapGeoFenceCircleRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
NSMutableArray<NSObject*>* resultList = [NSMutableArray array];
|
|
|
|
NSNumber* length = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"length"];
|
|
NSNumber* init = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"init"];
|
|
for (NSUInteger __i__ = 0; __i__ < [length integerValue]; __i__++) {
|
|
AMapGeoFenceCircleRegion* __this__;
|
|
if ([init boolValue]) {
|
|
__this__ = [[AMapGeoFenceCircleRegion alloc] init];
|
|
} else {
|
|
__this__ = [AMapGeoFenceCircleRegion alloc];
|
|
}
|
|
[resultList addObject:__this__];
|
|
}
|
|
|
|
methodResult(resultList);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::create_batchAMapGeoFencePolygonRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
NSMutableArray<NSObject*>* resultList = [NSMutableArray array];
|
|
|
|
NSNumber* length = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"length"];
|
|
NSNumber* init = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"init"];
|
|
for (NSUInteger __i__ = 0; __i__ < [length integerValue]; __i__++) {
|
|
AMapGeoFencePolygonRegion* __this__;
|
|
if ([init boolValue]) {
|
|
__this__ = [[AMapGeoFencePolygonRegion alloc] init];
|
|
} else {
|
|
__this__ = [AMapGeoFencePolygonRegion alloc];
|
|
}
|
|
[resultList addObject:__this__];
|
|
}
|
|
|
|
methodResult(resultList);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::create_batchAMapGeoFencePOIRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
NSMutableArray<NSObject*>* resultList = [NSMutableArray array];
|
|
|
|
NSNumber* length = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"length"];
|
|
NSNumber* init = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"init"];
|
|
for (NSUInteger __i__ = 0; __i__ < [length integerValue]; __i__++) {
|
|
AMapGeoFencePOIRegion* __this__;
|
|
if ([init boolValue]) {
|
|
__this__ = [[AMapGeoFencePOIRegion alloc] init];
|
|
} else {
|
|
__this__ = [AMapGeoFencePOIRegion alloc];
|
|
}
|
|
[resultList addObject:__this__];
|
|
}
|
|
|
|
methodResult(resultList);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::create_batchAMapGeoFenceDistrictRegion": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
NSMutableArray<NSObject*>* resultList = [NSMutableArray array];
|
|
|
|
NSNumber* length = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"length"];
|
|
NSNumber* init = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"init"];
|
|
for (NSUInteger __i__ = 0; __i__ < [length integerValue]; __i__++) {
|
|
AMapGeoFenceDistrictRegion* __this__;
|
|
if ([init boolValue]) {
|
|
__this__ = [[AMapGeoFenceDistrictRegion alloc] init];
|
|
} else {
|
|
__this__ = [AMapGeoFenceDistrictRegion alloc];
|
|
}
|
|
[resultList addObject:__this__];
|
|
}
|
|
|
|
methodResult(resultList);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::create_batchAMapLocationManager": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
NSMutableArray<NSObject*>* resultList = [NSMutableArray array];
|
|
|
|
NSNumber* length = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"length"];
|
|
NSNumber* init = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"init"];
|
|
for (NSUInteger __i__ = 0; __i__ < [length integerValue]; __i__++) {
|
|
AMapLocationManager* __this__;
|
|
if ([init boolValue]) {
|
|
__this__ = [[AMapLocationManager alloc] init];
|
|
} else {
|
|
__this__ = [AMapLocationManager alloc];
|
|
}
|
|
[resultList addObject:__this__];
|
|
}
|
|
|
|
methodResult(resultList);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::create_batchAMapLocationReGeocode": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
NSMutableArray<NSObject*>* resultList = [NSMutableArray array];
|
|
|
|
NSNumber* length = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"length"];
|
|
NSNumber* init = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"init"];
|
|
for (NSUInteger __i__ = 0; __i__ < [length integerValue]; __i__++) {
|
|
AMapLocationReGeocode* __this__;
|
|
if ([init boolValue]) {
|
|
__this__ = [[AMapLocationReGeocode alloc] init];
|
|
} else {
|
|
__this__ = [AMapLocationReGeocode alloc];
|
|
}
|
|
[resultList addObject:__this__];
|
|
}
|
|
|
|
methodResult(resultList);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::create_batchAMapLocationPoint": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
NSMutableArray<NSObject*>* resultList = [NSMutableArray array];
|
|
|
|
NSNumber* length = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"length"];
|
|
NSNumber* init = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"init"];
|
|
for (NSUInteger __i__ = 0; __i__ < [length integerValue]; __i__++) {
|
|
AMapLocationPoint* __this__;
|
|
if ([init boolValue]) {
|
|
__this__ = [[AMapLocationPoint alloc] init];
|
|
} else {
|
|
__this__ = [AMapLocationPoint alloc];
|
|
}
|
|
[resultList addObject:__this__];
|
|
}
|
|
|
|
methodResult(resultList);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::create_batchAMapLocationPOIItem": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
NSMutableArray<NSObject*>* resultList = [NSMutableArray array];
|
|
|
|
NSNumber* length = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"length"];
|
|
NSNumber* init = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"init"];
|
|
for (NSUInteger __i__ = 0; __i__ < [length integerValue]; __i__++) {
|
|
AMapLocationPOIItem* __this__;
|
|
if ([init boolValue]) {
|
|
__this__ = [[AMapLocationPOIItem alloc] init];
|
|
} else {
|
|
__this__ = [AMapLocationPOIItem alloc];
|
|
}
|
|
[resultList addObject:__this__];
|
|
}
|
|
|
|
methodResult(resultList);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"ObjectFactory::create_batchAMapLocationDistrictItem": ^(NSObject <FlutterPluginRegistrar> * registrar, id argsBatch, FlutterResult methodResult) {
|
|
NSMutableArray<NSObject*>* resultList = [NSMutableArray array];
|
|
|
|
NSNumber* length = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"length"];
|
|
NSNumber* init = (NSNumber*) ((NSDictionary<NSString*, NSObject*>*) argsBatch)[@"init"];
|
|
for (NSUInteger __i__ = 0; __i__ < [length integerValue]; __i__++) {
|
|
AMapLocationDistrictItem* __this__;
|
|
if ([init boolValue]) {
|
|
__this__ = [[AMapLocationDistrictItem alloc] init];
|
|
} else {
|
|
__this__ = [AMapLocationDistrictItem alloc];
|
|
}
|
|
[resultList addObject:__this__];
|
|
}
|
|
|
|
methodResult(resultList);
|
|
|
|
if (enableLog) NSLog(@"HEAP: %@", HEAP);
|
|
},
|
|
|
|
@"AMapGeoFenceManagerDelegate::createAnonymous__": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
id<AMapGeoFenceManagerDelegate> __result__ = [[AMapGeoFenceManagerDelegate_Anonymous alloc] initWithFlutterPluginRegistrar:registrar];
|
|
methodResult(__result__);
|
|
},
|
|
@"AMapLocationManagerDelegate::createAnonymous__": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
id<AMapLocationManagerDelegate> __result__ = [[AMapLocationManagerDelegate_Anonymous alloc] initWithFlutterPluginRegistrar:registrar];
|
|
methodResult(__result__);
|
|
},
|
|
@"AMapLocationCoordinateConvert::AMapLocationCoordinateConvert": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
if (enableLog) {
|
|
NSLog(@"fluttify-objc: AMapLocationCoordinateConvert::AMapLocationCoordinateConvert(%@)", args);
|
|
}
|
|
|
|
// args
|
|
// struct arg
|
|
NSValue* coordinateValue = (NSValue*) args[@"coordinate"];
|
|
CLLocationCoordinate2D coordinate;
|
|
if (coordinateValue != nil && (NSNull*) coordinateValue != [NSNull null]) {
|
|
[coordinateValue getValue:&coordinate];
|
|
} else {
|
|
methodResult([FlutterError errorWithCode:@"参数非法"
|
|
message:@"参数非法"
|
|
details:@"coordinate不能为null"]);
|
|
return;
|
|
}
|
|
|
|
// enum arg
|
|
AMapLocationCoordinateType type = (AMapLocationCoordinateType) [args[@"type"] integerValue];
|
|
|
|
// ref
|
|
|
|
|
|
// invoke native method
|
|
CLLocationCoordinate2D result = AMapLocationCoordinateConvert(coordinate, type);
|
|
|
|
// result
|
|
// 返回值: 结构体
|
|
NSValue* __result__ = [NSValue value:&result withObjCType:@encode(CLLocationCoordinate2D)];
|
|
|
|
methodResult(__result__);
|
|
},
|
|
@"AMapLocationDataAvailableForCoordinate::AMapLocationDataAvailableForCoordinate": ^(NSObject <FlutterPluginRegistrar> * registrar, id args, FlutterResult methodResult) {
|
|
if (enableLog) {
|
|
NSLog(@"fluttify-objc: AMapLocationDataAvailableForCoordinate::AMapLocationDataAvailableForCoordinate(%@)", args);
|
|
}
|
|
|
|
// args
|
|
// struct arg
|
|
NSValue* coordinateValue = (NSValue*) args[@"coordinate"];
|
|
CLLocationCoordinate2D coordinate;
|
|
if (coordinateValue != nil && (NSNull*) coordinateValue != [NSNull null]) {
|
|
[coordinateValue getValue:&coordinate];
|
|
} else {
|
|
methodResult([FlutterError errorWithCode:@"参数非法"
|
|
message:@"参数非法"
|
|
details:@"coordinate不能为null"]);
|
|
return;
|
|
}
|
|
|
|
|
|
// ref
|
|
|
|
|
|
// invoke native method
|
|
BOOL result = AMapLocationDataAvailableForCoordinate(coordinate);
|
|
|
|
// result
|
|
// 返回值: Value
|
|
NSObject* __result__ = @(result);
|
|
|
|
methodResult(__result__);
|
|
},
|
|
};
|
|
}
|
|
|
|
@end
|