amap_location_fluttify
This commit is contained in:
23
lib/src/android/android.export.g.dart
Normal file
23
lib/src/android/android.export.g.dart
Normal file
@ -0,0 +1,23 @@
|
||||
export 'type_op.g.dart';
|
||||
export 'constants.g.dart';
|
||||
export 'com/amap/api/location/AMapLocationClientOption/AMapLocationProtocol.g.dart';
|
||||
export 'com/amap/api/location/AMapLocationClientOption/AMapLocationPurpose.g.dart';
|
||||
export 'com/amap/api/location/AMapLocationClientOption/GeoLanguage.g.dart';
|
||||
export 'com/amap/api/location/AMapLocationClientOption/AMapLocationMode.g.dart';
|
||||
export 'com/amap/api/location/CoordUtil.g.dart';
|
||||
export 'com/amap/api/location/APSService.g.dart';
|
||||
export 'com/amap/api/location/UmidtokenInfo.g.dart';
|
||||
export 'com/amap/api/location/AMapLocationClientOption.g.dart';
|
||||
export 'com/amap/api/location/CoordinateConverter.g.dart';
|
||||
export 'com/amap/api/location/CoordinateConverter/CoordType.g.dart';
|
||||
export 'com/amap/api/location/AMapLocation.g.dart';
|
||||
export 'com/amap/api/location/AMapLocationListener.g.dart';
|
||||
export 'com/amap/api/location/AMapLocationQualityReport.g.dart';
|
||||
export 'com/amap/api/location/AMapLocationClient.g.dart';
|
||||
export 'com/amap/api/location/DPoint.g.dart';
|
||||
export 'com/amap/api/fence/DistrictItem.g.dart';
|
||||
export 'com/amap/api/fence/PoiItem.g.dart';
|
||||
export 'com/amap/api/fence/GeoFenceClient.g.dart';
|
||||
export 'com/amap/api/fence/GeoFenceListener.g.dart';
|
||||
export 'com/amap/api/fence/GeoFence.g.dart';
|
||||
export '../facade/shared.g.dart';
|
307
lib/src/android/com/amap/api/fence/DistrictItem.g.dart
Normal file
307
lib/src/android/com/amap/api/fence/DistrictItem.g.dart
Normal file
@ -0,0 +1,307 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:amap_location_fluttify/src/android/android.export.g.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:foundation_fluttify/foundation_fluttify.dart';
|
||||
import 'package:core_location_fluttify/core_location_fluttify.dart';
|
||||
import 'package:amap_core_fluttify/amap_core_fluttify.dart';
|
||||
|
||||
class com_amap_api_fence_DistrictItem extends java_lang_Object with android_os_Parcelable {
|
||||
//region constants
|
||||
static const String name__ = 'com.amap.api.fence.DistrictItem';
|
||||
|
||||
@override
|
||||
final String tag__ = 'amap_location_fluttify';
|
||||
|
||||
|
||||
//endregion
|
||||
|
||||
//region creators
|
||||
static Future<com_amap_api_fence_DistrictItem> create__() async {
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod(
|
||||
'ObjectFactory::createcom_amap_api_fence_DistrictItem__',
|
||||
|
||||
);
|
||||
return AmapLocationFluttifyAndroidAs<com_amap_api_fence_DistrictItem>(__result__)!;
|
||||
}
|
||||
|
||||
static Future<List<com_amap_api_fence_DistrictItem>> create_batch__(int length) async {
|
||||
assert(true);
|
||||
final __result_batch__ = await kAmapLocationFluttifyChannel.invokeListMethod(
|
||||
'ObjectFactory::create_batchcom_amap_api_fence_DistrictItem__',
|
||||
{'length': length}
|
||||
);
|
||||
return __result_batch__
|
||||
?.map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_fence_DistrictItem>(it))
|
||||
.where((element) => element !=null)
|
||||
.cast<com_amap_api_fence_DistrictItem>()
|
||||
.toList() ?? <com_amap_api_fence_DistrictItem>[];
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
Future<String?> getCitycode() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.DistrictItem@$refId::getCitycode([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.DistrictItem::getCitycode', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setCitycode(String var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.DistrictItem@$refId::setCitycode([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.DistrictItem::setCitycode', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<String?> getAdcode() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.DistrictItem@$refId::getAdcode([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.DistrictItem::getAdcode', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setAdcode(String var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.DistrictItem@$refId::setAdcode([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.DistrictItem::setAdcode', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<List<com_amap_api_location_DPoint>?> getPolyline() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.DistrictItem@$refId::getPolyline([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.DistrictItem::getPolyline', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return (__result__ as List?)?.map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_location_DPoint>(it)).where((e) => e != null).cast<com_amap_api_location_DPoint>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<void> setPolyline(List<com_amap_api_location_DPoint> var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.DistrictItem@$refId::setPolyline([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.DistrictItem::setPolyline', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<String?> getDistrictName() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.DistrictItem@$refId::getDistrictName([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.DistrictItem::getDistrictName', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setDistrictName(String var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.DistrictItem@$refId::setDistrictName([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.DistrictItem::setDistrictName', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'com_amap_api_fence_DistrictItem{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
|
||||
}
|
||||
}
|
||||
|
||||
extension com_amap_api_fence_DistrictItem_Batch on List<com_amap_api_fence_DistrictItem?> {
|
||||
String? get refId {
|
||||
if (isEmpty) return null;
|
||||
return first?.refId;
|
||||
}
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
Future<List<String?>> getCitycode_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.DistrictItem::getCitycode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setCitycode_batch(List<String> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.DistrictItem::setCitycode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<String?>> getAdcode_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.DistrictItem::getAdcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setAdcode_batch(List<String> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.DistrictItem::setAdcode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<List<com_amap_api_location_DPoint>?>> getPolyline_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.DistrictItem::getPolyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_location_DPoint>(it)).where((e) => e != null).cast<com_amap_api_location_DPoint>().toList()).cast<List<com_amap_api_location_DPoint>?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setPolyline_batch(List<List<com_amap_api_location_DPoint>> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.DistrictItem::setPolyline_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<String?>> getDistrictName_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.DistrictItem::getDistrictName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setDistrictName_batch(List<String> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.DistrictItem::setDistrictName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
//endregion
|
||||
}
|
1084
lib/src/android/com/amap/api/fence/GeoFence.g.dart
Normal file
1084
lib/src/android/com/amap/api/fence/GeoFence.g.dart
Normal file
File diff suppressed because it is too large
Load Diff
494
lib/src/android/com/amap/api/fence/GeoFenceClient.g.dart
Normal file
494
lib/src/android/com/amap/api/fence/GeoFenceClient.g.dart
Normal file
@ -0,0 +1,494 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:amap_location_fluttify/src/android/android.export.g.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:foundation_fluttify/foundation_fluttify.dart';
|
||||
import 'package:core_location_fluttify/core_location_fluttify.dart';
|
||||
import 'package:amap_core_fluttify/amap_core_fluttify.dart';
|
||||
|
||||
class com_amap_api_fence_GeoFenceClient extends java_lang_Object {
|
||||
//region constants
|
||||
static const String name__ = 'com.amap.api.fence.GeoFenceClient';
|
||||
|
||||
@override
|
||||
final String tag__ = 'amap_location_fluttify';
|
||||
|
||||
static final int GEOFENCE_IN = 1;
|
||||
static final int GEOFENCE_OUT = 2;
|
||||
static final int GEOFENCE_STAYED = 4;
|
||||
//endregion
|
||||
|
||||
//region creators
|
||||
static Future<com_amap_api_fence_GeoFenceClient> create__android_content_Context(android_content_Context var1) async {
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod(
|
||||
'ObjectFactory::createcom_amap_api_fence_GeoFenceClient__android_content_Context',
|
||||
{"var1": var1}
|
||||
);
|
||||
return AmapLocationFluttifyAndroidAs<com_amap_api_fence_GeoFenceClient>(__result__)!;
|
||||
}
|
||||
|
||||
static Future<List<com_amap_api_fence_GeoFenceClient>> create_batch__android_content_Context(List<android_content_Context> var1) async {
|
||||
assert(true);
|
||||
final __result_batch__ = await kAmapLocationFluttifyChannel.invokeListMethod(
|
||||
'ObjectFactory::create_batchcom_amap_api_fence_GeoFenceClient__android_content_Context',
|
||||
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]
|
||||
);
|
||||
return __result_batch__
|
||||
?.map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_fence_GeoFenceClient>(it))
|
||||
.where((element) => element !=null)
|
||||
.cast<com_amap_api_fence_GeoFenceClient>()
|
||||
.toList() ?? <com_amap_api_fence_GeoFenceClient>[];
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
Future<android_app_PendingIntent?> createPendingIntent(String var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.GeoFenceClient@$refId::createPendingIntent([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::createPendingIntent', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return AmapLocationFluttifyAndroidAs<android_app_PendingIntent>(__result__);
|
||||
}
|
||||
|
||||
|
||||
Future<void> setActivateAction(int var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.GeoFenceClient@$refId::setActivateAction([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::setActivateAction', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setGeoFenceListener(com_amap_api_fence_GeoFenceListener var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.GeoFenceClient@$refId::setGeoFenceListener([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::setGeoFenceListener', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> addGeoFence__com_amap_api_location_DPoint__double__String(com_amap_api_location_DPoint var1, double var2, String var3) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.GeoFenceClient@$refId::addGeoFence([\'var2\':$var2, \'var3\':$var3])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::addGeoFence__com_amap_api_location_DPoint__double__String', {"var1": var1, "var2": var2, "var3": var3, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> addGeoFence__List_com_amap_api_location_DPoint___String(List<com_amap_api_location_DPoint> var1, String var2) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.GeoFenceClient@$refId::addGeoFence([\'var2\':$var2])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::addGeoFence__List_com_amap_api_location_DPoint___String', {"var1": var1, "var2": var2, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> addGeoFence__String__String__com_amap_api_location_DPoint__double__int__String(String var1, String var2, com_amap_api_location_DPoint var3, double var4, int var5, String var6) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.GeoFenceClient@$refId::addGeoFence([\'var1\':$var1, \'var2\':$var2, \'var4\':$var4, \'var5\':$var5, \'var6\':$var6])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::addGeoFence__String__String__com_amap_api_location_DPoint__double__int__String', {"var1": var1, "var2": var2, "var3": var3, "var4": var4, "var5": var5, "var6": var6, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> addGeoFence__String__String__String__int__String(String var1, String var2, String var3, int var4, String var5) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.GeoFenceClient@$refId::addGeoFence([\'var1\':$var1, \'var2\':$var2, \'var3\':$var3, \'var4\':$var4, \'var5\':$var5])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::addGeoFence__String__String__String__int__String', {"var1": var1, "var2": var2, "var3": var3, "var4": var4, "var5": var5, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> addGeoFence__String__String(String var1, String var2) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.GeoFenceClient@$refId::addGeoFence([\'var1\':$var1, \'var2\':$var2])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::addGeoFence__String__String', {"var1": var1, "var2": var2, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> removeGeoFence() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.GeoFenceClient@$refId::removeGeoFence([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::removeGeoFence', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<bool?> removeGeoFence__com_amap_api_fence_GeoFence(com_amap_api_fence_GeoFence var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.GeoFenceClient@$refId::removeGeoFence([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::removeGeoFence__com_amap_api_fence_GeoFence', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<List<com_amap_api_fence_GeoFence>?> getAllGeoFence() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.GeoFenceClient@$refId::getAllGeoFence([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::getAllGeoFence', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return (__result__ as List?)?.map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_fence_GeoFence>(it)).where((e) => e != null).cast<com_amap_api_fence_GeoFence>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<void> setGeoFenceAble(String var1, bool var2) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.GeoFenceClient@$refId::setGeoFenceAble([\'var1\':$var1, \'var2\':$var2])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::setGeoFenceAble', {"var1": var1, "var2": var2, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> pauseGeoFence() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.GeoFenceClient@$refId::pauseGeoFence([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::pauseGeoFence', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> resumeGeoFence() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.GeoFenceClient@$refId::resumeGeoFence([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::resumeGeoFence', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<bool?> isPause() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.GeoFenceClient@$refId::isPause([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::isPause', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'com_amap_api_fence_GeoFenceClient{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
|
||||
}
|
||||
}
|
||||
|
||||
extension com_amap_api_fence_GeoFenceClient_Batch on List<com_amap_api_fence_GeoFenceClient?> {
|
||||
String? get refId {
|
||||
if (isEmpty) return null;
|
||||
return first?.refId;
|
||||
}
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
Future<List<android_app_PendingIntent?>> createPendingIntent_batch(List<String> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::createPendingIntent_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => AmapLocationFluttifyAndroidAs<android_app_PendingIntent>(__result__)).cast<android_app_PendingIntent?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setActivateAction_batch(List<int> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::setActivateAction_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> addGeoFence__com_amap_api_location_DPoint__double__String_batch(List<com_amap_api_location_DPoint> var1, List<double> var2, List<String> var3) async {
|
||||
assert(var1.length == var2.length && var2.length == var3.length);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::addGeoFence__com_amap_api_location_DPoint__double__String_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> addGeoFence__List_com_amap_api_location_DPoint___String_batch(List<List<com_amap_api_location_DPoint>> var1, List<String> var2) async {
|
||||
assert(var1.length == var2.length);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::addGeoFence__List_com_amap_api_location_DPoint___String_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> addGeoFence__String__String__com_amap_api_location_DPoint__double__int__String_batch(List<String> var1, List<String> var2, List<com_amap_api_location_DPoint> var3, List<double> var4, List<int> var5, List<String> var6) async {
|
||||
assert(var1.length == var2.length && var2.length == var3.length && var3.length == var4.length && var4.length == var5.length && var5.length == var6.length);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::addGeoFence__String__String__com_amap_api_location_DPoint__double__int__String_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__], "var5": var5[__i__], "var6": var6[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> addGeoFence__String__String__String__int__String_batch(List<String> var1, List<String> var2, List<String> var3, List<int> var4, List<String> var5) async {
|
||||
assert(var1.length == var2.length && var2.length == var3.length && var3.length == var4.length && var4.length == var5.length);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::addGeoFence__String__String__String__int__String_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "var4": var4[__i__], "var5": var5[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> addGeoFence__String__String_batch(List<String> var1, List<String> var2) async {
|
||||
assert(var1.length == var2.length);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::addGeoFence__String__String_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> removeGeoFence_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::removeGeoFence_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<bool?>> removeGeoFence__com_amap_api_fence_GeoFence_batch(List<com_amap_api_fence_GeoFence> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::removeGeoFence__com_amap_api_fence_GeoFence_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<List<com_amap_api_fence_GeoFence>?>> getAllGeoFence_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::getAllGeoFence_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => (__result__ as List?)?.map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_fence_GeoFence>(it)).where((e) => e != null).cast<com_amap_api_fence_GeoFence>().toList()).cast<List<com_amap_api_fence_GeoFence>?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setGeoFenceAble_batch(List<String> var1, List<bool> var2) async {
|
||||
assert(var1.length == var2.length);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::setGeoFenceAble_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> pauseGeoFence_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::pauseGeoFence_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> resumeGeoFence_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::resumeGeoFence_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<bool?>> isPause_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceClient::isPause_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
|
||||
}
|
||||
|
||||
//endregion
|
||||
}
|
67
lib/src/android/com/amap/api/fence/GeoFenceListener.g.dart
Normal file
67
lib/src/android/com/amap/api/fence/GeoFenceListener.g.dart
Normal file
@ -0,0 +1,67 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:amap_location_fluttify/src/android/android.export.g.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:foundation_fluttify/foundation_fluttify.dart';
|
||||
import 'package:core_location_fluttify/core_location_fluttify.dart';
|
||||
import 'package:amap_core_fluttify/amap_core_fluttify.dart';
|
||||
|
||||
class _com_amap_api_fence_GeoFenceListener_SUB extends java_lang_Object with com_amap_api_fence_GeoFenceListener {}
|
||||
|
||||
mixin com_amap_api_fence_GeoFenceListener on java_lang_Object {
|
||||
|
||||
|
||||
static com_amap_api_fence_GeoFenceListener subInstance() => _com_amap_api_fence_GeoFenceListener_SUB();
|
||||
|
||||
static Future<com_amap_api_fence_GeoFenceListener> anonymous__() async {
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.GeoFenceListener::createAnonymous__');
|
||||
|
||||
final __object__ = AmapLocationFluttifyAndroidAs<com_amap_api_fence_GeoFenceListener>(__result__)!;
|
||||
|
||||
// handle callback
|
||||
MethodChannel('com.amap.api.fence.GeoFenceListener::Callback@${__object__.refId}', kAmapLocationFluttifyMethodCodec)
|
||||
.setMethodCallHandler((methodCall) async {
|
||||
try {
|
||||
final args = methodCall.arguments as Map;
|
||||
switch (methodCall.method) {
|
||||
case 'onGeoFenceCreateFinished__':
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart-callback: __object__.onGeoFenceCreateFinished?.call([\'var1\':${args['var1']}, \'var2\':${args['var2']}, \'var3\':${args['var3']}])');
|
||||
}
|
||||
|
||||
// handle the native call
|
||||
__object__.onGeoFenceCreateFinished?.call((args['var1'] as List? ?? []).map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_fence_GeoFence>(it)).where((e) => e != null).cast<com_amap_api_fence_GeoFence>().toList(), args['var2'], args['var3']);
|
||||
break;
|
||||
default:
|
||||
throw MissingPluginException('方法${methodCall.method}未实现');
|
||||
break;
|
||||
}
|
||||
} catch (e) {
|
||||
debugPrint(e.toString());
|
||||
rethrow;
|
||||
}
|
||||
});
|
||||
|
||||
return __object__;
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
final String tag__ = 'amap_location_fluttify';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Future<void> Function(List<com_amap_api_fence_GeoFence>? var1, int? var2, String? var3)? onGeoFenceCreateFinished;
|
||||
|
||||
}
|
||||
|
699
lib/src/android/com/amap/api/fence/PoiItem.g.dart
Normal file
699
lib/src/android/com/amap/api/fence/PoiItem.g.dart
Normal file
@ -0,0 +1,699 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:amap_location_fluttify/src/android/android.export.g.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:foundation_fluttify/foundation_fluttify.dart';
|
||||
import 'package:core_location_fluttify/core_location_fluttify.dart';
|
||||
import 'package:amap_core_fluttify/amap_core_fluttify.dart';
|
||||
|
||||
class com_amap_api_fence_PoiItem extends java_lang_Object with android_os_Parcelable {
|
||||
//region constants
|
||||
static const String name__ = 'com.amap.api.fence.PoiItem';
|
||||
|
||||
@override
|
||||
final String tag__ = 'amap_location_fluttify';
|
||||
|
||||
|
||||
//endregion
|
||||
|
||||
//region creators
|
||||
static Future<com_amap_api_fence_PoiItem> create__() async {
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod(
|
||||
'ObjectFactory::createcom_amap_api_fence_PoiItem__',
|
||||
|
||||
);
|
||||
return AmapLocationFluttifyAndroidAs<com_amap_api_fence_PoiItem>(__result__)!;
|
||||
}
|
||||
|
||||
static Future<List<com_amap_api_fence_PoiItem>> create_batch__(int length) async {
|
||||
assert(true);
|
||||
final __result_batch__ = await kAmapLocationFluttifyChannel.invokeListMethod(
|
||||
'ObjectFactory::create_batchcom_amap_api_fence_PoiItem__',
|
||||
{'length': length}
|
||||
);
|
||||
return __result_batch__
|
||||
?.map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_fence_PoiItem>(it))
|
||||
.where((element) => element !=null)
|
||||
.cast<com_amap_api_fence_PoiItem>()
|
||||
.toList() ?? <com_amap_api_fence_PoiItem>[];
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
Future<double?> getLatitude() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::getLatitude([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getLatitude', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setLatitude(double var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::setLatitude([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setLatitude', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<double?> getLongitude() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::getLongitude([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getLongitude', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setLongitude(double var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::setLongitude([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setLongitude', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<String?> getPoiId() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::getPoiId([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getPoiId', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setPoiId(String var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::setPoiId([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setPoiId', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<String?> getPoiType() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::getPoiType([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getPoiType', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setPoiType(String var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::setPoiType([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setPoiType', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<String?> getTypeCode() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::getTypeCode([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getTypeCode', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setTypeCode(String var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::setTypeCode([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setTypeCode', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<String?> getAddress() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::getAddress([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getAddress', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setAddress(String var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::setAddress([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setAddress', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<String?> getTel() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::getTel([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getTel', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setTel(String var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::setTel([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setTel', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<String?> getProvince() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::getProvince([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getProvince', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setProvince(String var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::setProvince([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setProvince', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<String?> getCity() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::getCity([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getCity', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setCity(String var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::setCity([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setCity', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<String?> getAdname() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::getAdname([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getAdname', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<String?> getPoiName() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::getPoiName([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getPoiName', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setPoiName(String var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::setPoiName([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setPoiName', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setAdname(String var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.fence.PoiItem@$refId::setAdname([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setAdname', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'com_amap_api_fence_PoiItem{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
|
||||
}
|
||||
}
|
||||
|
||||
extension com_amap_api_fence_PoiItem_Batch on List<com_amap_api_fence_PoiItem?> {
|
||||
String? get refId {
|
||||
if (isEmpty) return null;
|
||||
return first?.refId;
|
||||
}
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
Future<List<double?>> getLatitude_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getLatitude_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setLatitude_batch(List<double> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setLatitude_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<double?>> getLongitude_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getLongitude_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setLongitude_batch(List<double> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setLongitude_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<String?>> getPoiId_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getPoiId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setPoiId_batch(List<String> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setPoiId_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<String?>> getPoiType_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getPoiType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setPoiType_batch(List<String> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setPoiType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<String?>> getTypeCode_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getTypeCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setTypeCode_batch(List<String> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setTypeCode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<String?>> getAddress_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getAddress_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setAddress_batch(List<String> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setAddress_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<String?>> getTel_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getTel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setTel_batch(List<String> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setTel_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<String?>> getProvince_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getProvince_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setProvince_batch(List<String> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setProvince_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<String?>> getCity_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getCity_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setCity_batch(List<String> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setCity_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<String?>> getAdname_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getAdname_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<String?>> getPoiName_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::getPoiName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setPoiName_batch(List<String> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setPoiName_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setAdname_batch(List<String> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.fence.PoiItem::setAdname_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
//endregion
|
||||
}
|
2215
lib/src/android/com/amap/api/location/AMapLocation.g.dart
Normal file
2215
lib/src/android/com/amap/api/location/AMapLocation.g.dart
Normal file
File diff suppressed because it is too large
Load Diff
558
lib/src/android/com/amap/api/location/AMapLocationClient.g.dart
Normal file
558
lib/src/android/com/amap/api/location/AMapLocationClient.g.dart
Normal file
@ -0,0 +1,558 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:amap_location_fluttify/src/android/android.export.g.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:foundation_fluttify/foundation_fluttify.dart';
|
||||
import 'package:core_location_fluttify/core_location_fluttify.dart';
|
||||
import 'package:amap_core_fluttify/amap_core_fluttify.dart';
|
||||
|
||||
class com_amap_api_location_AMapLocationClient extends java_lang_Object {
|
||||
//region constants
|
||||
static const String name__ = 'com.amap.api.location.AMapLocationClient';
|
||||
|
||||
@override
|
||||
final String tag__ = 'amap_location_fluttify';
|
||||
|
||||
|
||||
//endregion
|
||||
|
||||
//region creators
|
||||
static Future<com_amap_api_location_AMapLocationClient> create__android_content_Context(android_content_Context var1) async {
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod(
|
||||
'ObjectFactory::createcom_amap_api_location_AMapLocationClient__android_content_Context',
|
||||
{"var1": var1}
|
||||
);
|
||||
return AmapLocationFluttifyAndroidAs<com_amap_api_location_AMapLocationClient>(__result__)!;
|
||||
}
|
||||
|
||||
static Future<com_amap_api_location_AMapLocationClient> create__android_content_Context__android_content_Intent(android_content_Context var1, android_content_Intent var2) async {
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod(
|
||||
'ObjectFactory::createcom_amap_api_location_AMapLocationClient__android_content_Context__android_content_Intent',
|
||||
{"var1": var1, "var2": var2}
|
||||
);
|
||||
return AmapLocationFluttifyAndroidAs<com_amap_api_location_AMapLocationClient>(__result__)!;
|
||||
}
|
||||
|
||||
static Future<List<com_amap_api_location_AMapLocationClient>> create_batch__android_content_Context(List<android_content_Context> var1) async {
|
||||
assert(true);
|
||||
final __result_batch__ = await kAmapLocationFluttifyChannel.invokeListMethod(
|
||||
'ObjectFactory::create_batchcom_amap_api_location_AMapLocationClient__android_content_Context',
|
||||
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]
|
||||
);
|
||||
return __result_batch__
|
||||
?.map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_location_AMapLocationClient>(it))
|
||||
.where((element) => element !=null)
|
||||
.cast<com_amap_api_location_AMapLocationClient>()
|
||||
.toList() ?? <com_amap_api_location_AMapLocationClient>[];
|
||||
}
|
||||
|
||||
static Future<List<com_amap_api_location_AMapLocationClient>> create_batch__android_content_Context__android_content_Intent(List<android_content_Context> var1, List<android_content_Intent> var2) async {
|
||||
assert(var1.length == var2.length);
|
||||
final __result_batch__ = await kAmapLocationFluttifyChannel.invokeListMethod(
|
||||
'ObjectFactory::create_batchcom_amap_api_location_AMapLocationClient__android_content_Context__android_content_Intent',
|
||||
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__]}]
|
||||
);
|
||||
return __result_batch__
|
||||
?.map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_location_AMapLocationClient>(it))
|
||||
.where((element) => element !=null)
|
||||
.cast<com_amap_api_location_AMapLocationClient>()
|
||||
.toList() ?? <com_amap_api_location_AMapLocationClient>[];
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
Future<void> setLocationOption(com_amap_api_location_AMapLocationClientOption var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient@$refId::setLocationOption([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::setLocationOption', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setLocationListener(com_amap_api_location_AMapLocationListener var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient@$refId::setLocationListener([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::setLocationListener', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> startLocation() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient@$refId::startLocation([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::startLocation', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> stopLocation() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient@$refId::stopLocation([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::stopLocation', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<com_amap_api_location_AMapLocation?> getLastKnownLocation() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient@$refId::getLastKnownLocation([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::getLastKnownLocation', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return AmapLocationFluttifyAndroidAs<com_amap_api_location_AMapLocation>(__result__);
|
||||
}
|
||||
|
||||
|
||||
Future<void> stopAssistantLocation() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient@$refId::stopAssistantLocation([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::stopAssistantLocation', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<String?> getVersion() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient@$refId::getVersion([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::getVersion', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
static Future<void> updatePrivacyShow(android_content_Context var0, bool var1, bool var2) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient::updatePrivacyShow([\'var1\':$var1, \'var2\':$var2])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::updatePrivacyShow', {"var0": var0, "var1": var1, "var2": var2});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
static Future<void> updatePrivacyAgree(android_content_Context var0, bool var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient::updatePrivacyAgree([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::updatePrivacyAgree', {"var0": var0, "var1": var1});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
static Future<void> setApiKey(String var0) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient::setApiKey([\'var0\':$var0])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::setApiKey', {"var0": var0});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<bool?> isStarted() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient@$refId::isStarted([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::isStarted', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> unRegisterLocationListener(com_amap_api_location_AMapLocationListener var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient@$refId::unRegisterLocationListener([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::unRegisterLocationListener', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> onDestroy() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient@$refId::onDestroy([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::onDestroy', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> enableBackgroundLocation(int var1, android_app_Notification var2) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient@$refId::enableBackgroundLocation([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::enableBackgroundLocation', {"var1": var1, "var2": var2, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> disableBackgroundLocation(bool var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient@$refId::disableBackgroundLocation([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::disableBackgroundLocation', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
static Future<String?> getDeviceId(android_content_Context var0) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient::getDeviceId([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::getDeviceId', {"var0": var0});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
static Future<void> setHost(String var0) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationClient::setHost([\'var0\':$var0])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::setHost', {"var0": var0});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'com_amap_api_location_AMapLocationClient{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
|
||||
}
|
||||
}
|
||||
|
||||
extension com_amap_api_location_AMapLocationClient_Batch on List<com_amap_api_location_AMapLocationClient?> {
|
||||
String? get refId {
|
||||
if (isEmpty) return null;
|
||||
return first?.refId;
|
||||
}
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
Future<List<void>> setLocationOption_batch(List<com_amap_api_location_AMapLocationClientOption> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::setLocationOption_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> startLocation_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::startLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> stopLocation_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::stopLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<com_amap_api_location_AMapLocation?>> getLastKnownLocation_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::getLastKnownLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => AmapLocationFluttifyAndroidAs<com_amap_api_location_AMapLocation>(__result__)).cast<com_amap_api_location_AMapLocation?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> stopAssistantLocation_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::stopAssistantLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<String?>> getVersion_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::getVersion_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
|
||||
static Future<List<void>> updatePrivacyShow_batch(List<android_content_Context> var0, List<bool> var1, List<bool> var2) async {
|
||||
assert(var0.length == var1.length && var1.length == var2.length);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::updatePrivacyShow_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__], "var1": var1[__i__], "var2": var2[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
static Future<List<void>> updatePrivacyAgree_batch(List<android_content_Context> var0, List<bool> var1) async {
|
||||
assert(var0.length == var1.length);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::updatePrivacyAgree_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__], "var1": var1[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
static Future<List<void>> setApiKey_batch(List<String> var0) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::setApiKey_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<bool?>> isStarted_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::isStarted_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> onDestroy_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::onDestroy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> enableBackgroundLocation_batch(List<int> var1, List<android_app_Notification> var2) async {
|
||||
assert(var1.length == var2.length);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::enableBackgroundLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> disableBackgroundLocation_batch(List<bool> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::disableBackgroundLocation_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
static Future<List<String?>> getDeviceId_batch(List<android_content_Context> var0) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::getDeviceId_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
|
||||
static Future<List<void>> setHost_batch(List<String> var0) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationClient::setHost_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
//endregion
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,30 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
enum com_amap_api_location_AMapLocationClientOption_AMapLocationMode {
|
||||
Battery_Saving /* null */,
|
||||
Device_Sensors /* null */,
|
||||
Hight_Accuracy /* null */
|
||||
}
|
||||
|
||||
extension com_amap_api_location_AMapLocationClientOption_AMapLocationModeToX on com_amap_api_location_AMapLocationClientOption_AMapLocationMode {
|
||||
int toValue() {
|
||||
switch (this) {
|
||||
case com_amap_api_location_AMapLocationClientOption_AMapLocationMode.Battery_Saving: return com_amap_api_location_AMapLocationClientOption_AMapLocationMode.Battery_Saving.index + 0;
|
||||
case com_amap_api_location_AMapLocationClientOption_AMapLocationMode.Device_Sensors: return com_amap_api_location_AMapLocationClientOption_AMapLocationMode.Device_Sensors.index + 0;
|
||||
case com_amap_api_location_AMapLocationClientOption_AMapLocationMode.Hight_Accuracy: return com_amap_api_location_AMapLocationClientOption_AMapLocationMode.Hight_Accuracy.index + 0;
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension com_amap_api_location_AMapLocationClientOption_AMapLocationModeFromX on int {
|
||||
com_amap_api_location_AMapLocationClientOption_AMapLocationMode tocom_amap_api_location_AMapLocationClientOption_AMapLocationMode() {
|
||||
switch (this) {
|
||||
|
||||
default: return com_amap_api_location_AMapLocationClientOption_AMapLocationMode.values[this + 0];
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,28 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
enum com_amap_api_location_AMapLocationClientOption_AMapLocationProtocol {
|
||||
HTTP /* null */,
|
||||
HTTPS /* null */
|
||||
}
|
||||
|
||||
extension com_amap_api_location_AMapLocationClientOption_AMapLocationProtocolToX on com_amap_api_location_AMapLocationClientOption_AMapLocationProtocol {
|
||||
int toValue() {
|
||||
switch (this) {
|
||||
case com_amap_api_location_AMapLocationClientOption_AMapLocationProtocol.HTTP: return com_amap_api_location_AMapLocationClientOption_AMapLocationProtocol.HTTP.index + 0;
|
||||
case com_amap_api_location_AMapLocationClientOption_AMapLocationProtocol.HTTPS: return com_amap_api_location_AMapLocationClientOption_AMapLocationProtocol.HTTPS.index + 0;
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension com_amap_api_location_AMapLocationClientOption_AMapLocationProtocolFromX on int {
|
||||
com_amap_api_location_AMapLocationClientOption_AMapLocationProtocol tocom_amap_api_location_AMapLocationClientOption_AMapLocationProtocol() {
|
||||
switch (this) {
|
||||
|
||||
default: return com_amap_api_location_AMapLocationClientOption_AMapLocationProtocol.values[this + 0];
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
enum com_amap_api_location_AMapLocationClientOption_AMapLocationPurpose {
|
||||
SignIn /* null */,
|
||||
Transport /* null */,
|
||||
Sport /* null */
|
||||
}
|
||||
|
||||
extension com_amap_api_location_AMapLocationClientOption_AMapLocationPurposeToX on com_amap_api_location_AMapLocationClientOption_AMapLocationPurpose {
|
||||
int toValue() {
|
||||
switch (this) {
|
||||
case com_amap_api_location_AMapLocationClientOption_AMapLocationPurpose.SignIn: return com_amap_api_location_AMapLocationClientOption_AMapLocationPurpose.SignIn.index + 0;
|
||||
case com_amap_api_location_AMapLocationClientOption_AMapLocationPurpose.Transport: return com_amap_api_location_AMapLocationClientOption_AMapLocationPurpose.Transport.index + 0;
|
||||
case com_amap_api_location_AMapLocationClientOption_AMapLocationPurpose.Sport: return com_amap_api_location_AMapLocationClientOption_AMapLocationPurpose.Sport.index + 0;
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension com_amap_api_location_AMapLocationClientOption_AMapLocationPurposeFromX on int {
|
||||
com_amap_api_location_AMapLocationClientOption_AMapLocationPurpose tocom_amap_api_location_AMapLocationClientOption_AMapLocationPurpose() {
|
||||
switch (this) {
|
||||
|
||||
default: return com_amap_api_location_AMapLocationClientOption_AMapLocationPurpose.values[this + 0];
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,30 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
enum com_amap_api_location_AMapLocationClientOption_GeoLanguage {
|
||||
DEFAULT /* null */,
|
||||
ZH /* null */,
|
||||
EN /* null */
|
||||
}
|
||||
|
||||
extension com_amap_api_location_AMapLocationClientOption_GeoLanguageToX on com_amap_api_location_AMapLocationClientOption_GeoLanguage {
|
||||
int toValue() {
|
||||
switch (this) {
|
||||
case com_amap_api_location_AMapLocationClientOption_GeoLanguage.DEFAULT: return com_amap_api_location_AMapLocationClientOption_GeoLanguage.DEFAULT.index + 0;
|
||||
case com_amap_api_location_AMapLocationClientOption_GeoLanguage.ZH: return com_amap_api_location_AMapLocationClientOption_GeoLanguage.ZH.index + 0;
|
||||
case com_amap_api_location_AMapLocationClientOption_GeoLanguage.EN: return com_amap_api_location_AMapLocationClientOption_GeoLanguage.EN.index + 0;
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension com_amap_api_location_AMapLocationClientOption_GeoLanguageFromX on int {
|
||||
com_amap_api_location_AMapLocationClientOption_GeoLanguage tocom_amap_api_location_AMapLocationClientOption_GeoLanguage() {
|
||||
switch (this) {
|
||||
|
||||
default: return com_amap_api_location_AMapLocationClientOption_GeoLanguage.values[this + 0];
|
||||
}
|
||||
}
|
||||
}
|
@ -0,0 +1,67 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:amap_location_fluttify/src/android/android.export.g.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:foundation_fluttify/foundation_fluttify.dart';
|
||||
import 'package:core_location_fluttify/core_location_fluttify.dart';
|
||||
import 'package:amap_core_fluttify/amap_core_fluttify.dart';
|
||||
|
||||
class _com_amap_api_location_AMapLocationListener_SUB extends java_lang_Object with com_amap_api_location_AMapLocationListener {}
|
||||
|
||||
mixin com_amap_api_location_AMapLocationListener on java_lang_Object {
|
||||
|
||||
|
||||
static com_amap_api_location_AMapLocationListener subInstance() => _com_amap_api_location_AMapLocationListener_SUB();
|
||||
|
||||
static Future<com_amap_api_location_AMapLocationListener> anonymous__() async {
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationListener::createAnonymous__');
|
||||
|
||||
final __object__ = AmapLocationFluttifyAndroidAs<com_amap_api_location_AMapLocationListener>(__result__)!;
|
||||
|
||||
// handle callback
|
||||
MethodChannel('com.amap.api.location.AMapLocationListener::Callback@${__object__.refId}', kAmapLocationFluttifyMethodCodec)
|
||||
.setMethodCallHandler((methodCall) async {
|
||||
try {
|
||||
final args = methodCall.arguments as Map;
|
||||
switch (methodCall.method) {
|
||||
case 'onLocationChanged':
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart-callback: __object__.onLocationChanged?.call([\'var1\':${args['var1']}])');
|
||||
}
|
||||
|
||||
// handle the native call
|
||||
__object__.onLocationChanged?.call(AmapLocationFluttifyAndroidAs<com_amap_api_location_AMapLocation>(args['var1']));
|
||||
break;
|
||||
default:
|
||||
throw MissingPluginException('方法${methodCall.method}未实现');
|
||||
break;
|
||||
}
|
||||
} catch (e) {
|
||||
debugPrint(e.toString());
|
||||
rethrow;
|
||||
}
|
||||
});
|
||||
|
||||
return __object__;
|
||||
}
|
||||
|
||||
|
||||
@override
|
||||
final String tag__ = 'amap_location_fluttify';
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Future<void> Function(com_amap_api_location_AMapLocation? var1)? onLocationChanged;
|
||||
|
||||
}
|
||||
|
@ -0,0 +1,479 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:amap_location_fluttify/src/android/android.export.g.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:foundation_fluttify/foundation_fluttify.dart';
|
||||
import 'package:core_location_fluttify/core_location_fluttify.dart';
|
||||
import 'package:amap_core_fluttify/amap_core_fluttify.dart';
|
||||
|
||||
class com_amap_api_location_AMapLocationQualityReport extends java_lang_Object {
|
||||
//region constants
|
||||
static const String name__ = 'com.amap.api.location.AMapLocationQualityReport';
|
||||
|
||||
@override
|
||||
final String tag__ = 'amap_location_fluttify';
|
||||
|
||||
static final int GPS_STATUS_OK = 0;
|
||||
static final int GPS_STATUS_NOGPSPROVIDER = 1;
|
||||
static final int GPS_STATUS_OFF = 2;
|
||||
static final int GPS_STATUS_MODE_SAVING = 3;
|
||||
static final int GPS_STATUS_NOGPSPERMISSION = 4;
|
||||
//endregion
|
||||
|
||||
//region creators
|
||||
static Future<com_amap_api_location_AMapLocationQualityReport> create__() async {
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod(
|
||||
'ObjectFactory::createcom_amap_api_location_AMapLocationQualityReport__',
|
||||
|
||||
);
|
||||
return AmapLocationFluttifyAndroidAs<com_amap_api_location_AMapLocationQualityReport>(__result__)!;
|
||||
}
|
||||
|
||||
static Future<List<com_amap_api_location_AMapLocationQualityReport>> create_batch__(int length) async {
|
||||
assert(true);
|
||||
final __result_batch__ = await kAmapLocationFluttifyChannel.invokeListMethod(
|
||||
'ObjectFactory::create_batchcom_amap_api_location_AMapLocationQualityReport__',
|
||||
{'length': length}
|
||||
);
|
||||
return __result_batch__
|
||||
?.map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_location_AMapLocationQualityReport>(it))
|
||||
.where((element) => element !=null)
|
||||
.cast<com_amap_api_location_AMapLocationQualityReport>()
|
||||
.toList() ?? <com_amap_api_location_AMapLocationQualityReport>[];
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
Future<void> setWifiAble(bool var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationQualityReport@$refId::setWifiAble([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::setWifiAble', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setGpsStatus(int var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationQualityReport@$refId::setGpsStatus([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::setGpsStatus', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setGPSSatellites(int var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationQualityReport@$refId::setGPSSatellites([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::setGPSSatellites', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<bool?> isWifiAble() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationQualityReport@$refId::isWifiAble([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::isWifiAble', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<int?> getGPSStatus() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationQualityReport@$refId::getGPSStatus([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::getGPSStatus', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<int?> getGPSSatellites() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationQualityReport@$refId::getGPSSatellites([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::getGPSSatellites', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<String?> getNetworkType() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationQualityReport@$refId::getNetworkType([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::getNetworkType', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setNetworkType(String var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationQualityReport@$refId::setNetworkType([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::setNetworkType', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<int?> getNetUseTime() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationQualityReport@$refId::getNetUseTime([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::getNetUseTime', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setNetUseTime(int var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationQualityReport@$refId::setNetUseTime([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::setNetUseTime', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setInstallHighDangerMockApp(bool var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationQualityReport@$refId::setInstallHighDangerMockApp([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::setInstallHighDangerMockApp', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<bool?> isInstalledHighDangerMockApp() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationQualityReport@$refId::isInstalledHighDangerMockApp([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::isInstalledHighDangerMockApp', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setLocationMode(com_amap_api_location_AMapLocationClientOption_AMapLocationMode var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationQualityReport@$refId::setLocationMode([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::setLocationMode', {"var1": var1.toValue(), "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<String?> getAdviseMessage() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.AMapLocationQualityReport@$refId::getAdviseMessage([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::getAdviseMessage', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'com_amap_api_location_AMapLocationQualityReport{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
|
||||
}
|
||||
}
|
||||
|
||||
extension com_amap_api_location_AMapLocationQualityReport_Batch on List<com_amap_api_location_AMapLocationQualityReport?> {
|
||||
String? get refId {
|
||||
if (isEmpty) return null;
|
||||
return first?.refId;
|
||||
}
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
Future<List<void>> setWifiAble_batch(List<bool> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::setWifiAble_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setGpsStatus_batch(List<int> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::setGpsStatus_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setGPSSatellites_batch(List<int> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::setGPSSatellites_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<bool?>> isWifiAble_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::isWifiAble_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<int?>> getGPSStatus_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::getGPSStatus_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<int?>> getGPSSatellites_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::getGPSSatellites_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<String?>> getNetworkType_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::getNetworkType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setNetworkType_batch(List<String> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::setNetworkType_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<int?>> getNetUseTime_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::getNetUseTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setNetUseTime_batch(List<int> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::setNetUseTime_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setInstallHighDangerMockApp_batch(List<bool> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::setInstallHighDangerMockApp_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<bool?>> isInstalledHighDangerMockApp_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::isInstalledHighDangerMockApp_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setLocationMode_batch(List<com_amap_api_location_AMapLocationClientOption_AMapLocationMode> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::setLocationMode_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__].toValue(), "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<String?>> getAdviseMessage_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.AMapLocationQualityReport::getAdviseMessage_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
//endregion
|
||||
}
|
167
lib/src/android/com/amap/api/location/APSService.g.dart
Normal file
167
lib/src/android/com/amap/api/location/APSService.g.dart
Normal file
@ -0,0 +1,167 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:amap_location_fluttify/src/android/android.export.g.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:foundation_fluttify/foundation_fluttify.dart';
|
||||
import 'package:core_location_fluttify/core_location_fluttify.dart';
|
||||
import 'package:amap_core_fluttify/amap_core_fluttify.dart';
|
||||
|
||||
class com_amap_api_location_APSService extends java_lang_Object {
|
||||
//region constants
|
||||
static const String name__ = 'com.amap.api.location.APSService';
|
||||
|
||||
@override
|
||||
final String tag__ = 'amap_location_fluttify';
|
||||
|
||||
|
||||
//endregion
|
||||
|
||||
//region creators
|
||||
static Future<com_amap_api_location_APSService> create__() async {
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod(
|
||||
'ObjectFactory::createcom_amap_api_location_APSService__',
|
||||
|
||||
);
|
||||
return AmapLocationFluttifyAndroidAs<com_amap_api_location_APSService>(__result__)!;
|
||||
}
|
||||
|
||||
static Future<List<com_amap_api_location_APSService>> create_batch__(int length) async {
|
||||
assert(true);
|
||||
final __result_batch__ = await kAmapLocationFluttifyChannel.invokeListMethod(
|
||||
'ObjectFactory::create_batchcom_amap_api_location_APSService__',
|
||||
{'length': length}
|
||||
);
|
||||
return __result_batch__
|
||||
?.map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_location_APSService>(it))
|
||||
.where((element) => element !=null)
|
||||
.cast<com_amap_api_location_APSService>()
|
||||
.toList() ?? <com_amap_api_location_APSService>[];
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
Future<void> onCreate() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.APSService@$refId::onCreate([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.APSService::onCreate', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<int?> onStartCommand(android_content_Intent var1, int var2, int var3) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.APSService@$refId::onStartCommand([\'var2\':$var2, \'var3\':$var3])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.APSService::onStartCommand', {"var1": var1, "var2": var2, "var3": var3, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> onDestroy() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.APSService@$refId::onDestroy([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.APSService::onDestroy', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'com_amap_api_location_APSService{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
|
||||
}
|
||||
}
|
||||
|
||||
extension com_amap_api_location_APSService_Batch on List<com_amap_api_location_APSService?> {
|
||||
String? get refId {
|
||||
if (isEmpty) return null;
|
||||
return first?.refId;
|
||||
}
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
Future<List<void>> onCreate_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.APSService::onCreate_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<int?>> onStartCommand_batch(List<android_content_Intent> var1, List<int> var2, List<int> var3) async {
|
||||
assert(var1.length == var2.length && var2.length == var3.length);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.APSService::onStartCommand_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "var2": var2[__i__], "var3": var3[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> onDestroy_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.APSService::onDestroy_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
//endregion
|
||||
}
|
167
lib/src/android/com/amap/api/location/CoordUtil.g.dart
Normal file
167
lib/src/android/com/amap/api/location/CoordUtil.g.dart
Normal file
@ -0,0 +1,167 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:amap_location_fluttify/src/android/android.export.g.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:foundation_fluttify/foundation_fluttify.dart';
|
||||
import 'package:core_location_fluttify/core_location_fluttify.dart';
|
||||
import 'package:amap_core_fluttify/amap_core_fluttify.dart';
|
||||
|
||||
class com_amap_api_location_CoordUtil extends java_lang_Object {
|
||||
//region constants
|
||||
static const String name__ = 'com.amap.api.location.CoordUtil';
|
||||
|
||||
@override
|
||||
final String tag__ = 'amap_location_fluttify';
|
||||
|
||||
|
||||
//endregion
|
||||
|
||||
//region creators
|
||||
static Future<com_amap_api_location_CoordUtil> create__() async {
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod(
|
||||
'ObjectFactory::createcom_amap_api_location_CoordUtil__',
|
||||
|
||||
);
|
||||
return AmapLocationFluttifyAndroidAs<com_amap_api_location_CoordUtil>(__result__)!;
|
||||
}
|
||||
|
||||
static Future<List<com_amap_api_location_CoordUtil>> create_batch__(int length) async {
|
||||
assert(true);
|
||||
final __result_batch__ = await kAmapLocationFluttifyChannel.invokeListMethod(
|
||||
'ObjectFactory::create_batchcom_amap_api_location_CoordUtil__',
|
||||
{'length': length}
|
||||
);
|
||||
return __result_batch__
|
||||
?.map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_location_CoordUtil>(it))
|
||||
.where((element) => element !=null)
|
||||
.cast<com_amap_api_location_CoordUtil>()
|
||||
.toList() ?? <com_amap_api_location_CoordUtil>[];
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
static Future<int?> convertToGcj(Float64List var0, Float64List var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.CoordUtil::convertToGcj([\'var0\':$var0, \'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordUtil::convertToGcj', {"var0": var0, "var1": var1});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
static Future<bool?> isLoadedSo() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.CoordUtil::isLoadedSo([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordUtil::isLoadedSo', );
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
static Future<void> setLoadedSo(bool var0) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.CoordUtil::setLoadedSo([\'var0\':$var0])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordUtil::setLoadedSo', {"var0": var0});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'com_amap_api_location_CoordUtil{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
|
||||
}
|
||||
}
|
||||
|
||||
extension com_amap_api_location_CoordUtil_Batch on List<com_amap_api_location_CoordUtil?> {
|
||||
String? get refId {
|
||||
if (isEmpty) return null;
|
||||
return first?.refId;
|
||||
}
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
static Future<List<int?>> convertToGcj_batch(List<Float64List> var0, List<Float64List> var1) async {
|
||||
assert(var0.length == var1.length);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordUtil::convertToGcj_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__], "var1": var1[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<int?>().toList();
|
||||
}
|
||||
|
||||
|
||||
static Future<List<bool?>> isLoadedSo_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordUtil::isLoadedSo_batch', );
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
|
||||
}
|
||||
|
||||
|
||||
static Future<List<void>> setLoadedSo_batch(List<bool> var0) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordUtil::setLoadedSo_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
//endregion
|
||||
}
|
223
lib/src/android/com/amap/api/location/CoordinateConverter.g.dart
Normal file
223
lib/src/android/com/amap/api/location/CoordinateConverter.g.dart
Normal file
@ -0,0 +1,223 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:amap_location_fluttify/src/android/android.export.g.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:foundation_fluttify/foundation_fluttify.dart';
|
||||
import 'package:core_location_fluttify/core_location_fluttify.dart';
|
||||
import 'package:amap_core_fluttify/amap_core_fluttify.dart';
|
||||
|
||||
class com_amap_api_location_CoordinateConverter extends java_lang_Object {
|
||||
//region constants
|
||||
static const String name__ = 'com.amap.api.location.CoordinateConverter';
|
||||
|
||||
@override
|
||||
final String tag__ = 'amap_location_fluttify';
|
||||
|
||||
|
||||
//endregion
|
||||
|
||||
//region creators
|
||||
static Future<com_amap_api_location_CoordinateConverter> create__android_content_Context(android_content_Context var1) async {
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod(
|
||||
'ObjectFactory::createcom_amap_api_location_CoordinateConverter__android_content_Context',
|
||||
{"var1": var1}
|
||||
);
|
||||
return AmapLocationFluttifyAndroidAs<com_amap_api_location_CoordinateConverter>(__result__)!;
|
||||
}
|
||||
|
||||
static Future<List<com_amap_api_location_CoordinateConverter>> create_batch__android_content_Context(List<android_content_Context> var1) async {
|
||||
assert(true);
|
||||
final __result_batch__ = await kAmapLocationFluttifyChannel.invokeListMethod(
|
||||
'ObjectFactory::create_batchcom_amap_api_location_CoordinateConverter__android_content_Context',
|
||||
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__]}]
|
||||
);
|
||||
return __result_batch__
|
||||
?.map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_location_CoordinateConverter>(it))
|
||||
.where((element) => element !=null)
|
||||
.cast<com_amap_api_location_CoordinateConverter>()
|
||||
.toList() ?? <com_amap_api_location_CoordinateConverter>[];
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
Future<com_amap_api_location_CoordinateConverter?> from(com_amap_api_location_CoordinateConverter_CoordType var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.CoordinateConverter@$refId::from([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordinateConverter::from', {"var1": var1.toValue(), "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return AmapLocationFluttifyAndroidAs<com_amap_api_location_CoordinateConverter>(__result__);
|
||||
}
|
||||
|
||||
|
||||
Future<com_amap_api_location_CoordinateConverter?> coord(com_amap_api_location_DPoint var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.CoordinateConverter@$refId::coord([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordinateConverter::coord', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return AmapLocationFluttifyAndroidAs<com_amap_api_location_CoordinateConverter>(__result__);
|
||||
}
|
||||
|
||||
|
||||
Future<com_amap_api_location_DPoint?> convert() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.CoordinateConverter@$refId::convert([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordinateConverter::convert', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return AmapLocationFluttifyAndroidAs<com_amap_api_location_DPoint>(__result__);
|
||||
}
|
||||
|
||||
|
||||
static Future<bool?> isAMapDataAvailable(double var0, double var2) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.CoordinateConverter::isAMapDataAvailable([\'var0\':$var0, \'var2\':$var2])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordinateConverter::isAMapDataAvailable', {"var0": var0, "var2": var2});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
static Future<double?> calculateLineDistance(com_amap_api_location_DPoint var0, com_amap_api_location_DPoint var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.CoordinateConverter::calculateLineDistance([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordinateConverter::calculateLineDistance', {"var0": var0, "var1": var1});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'com_amap_api_location_CoordinateConverter{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
|
||||
}
|
||||
}
|
||||
|
||||
extension com_amap_api_location_CoordinateConverter_Batch on List<com_amap_api_location_CoordinateConverter?> {
|
||||
String? get refId {
|
||||
if (isEmpty) return null;
|
||||
return first?.refId;
|
||||
}
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
Future<List<com_amap_api_location_CoordinateConverter?>> from_batch(List<com_amap_api_location_CoordinateConverter_CoordType> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordinateConverter::from_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__].toValue(), "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => AmapLocationFluttifyAndroidAs<com_amap_api_location_CoordinateConverter>(__result__)).cast<com_amap_api_location_CoordinateConverter?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<com_amap_api_location_CoordinateConverter?>> coord_batch(List<com_amap_api_location_DPoint> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordinateConverter::coord_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => AmapLocationFluttifyAndroidAs<com_amap_api_location_CoordinateConverter>(__result__)).cast<com_amap_api_location_CoordinateConverter?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<com_amap_api_location_DPoint?>> convert_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordinateConverter::convert_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => AmapLocationFluttifyAndroidAs<com_amap_api_location_DPoint>(__result__)).cast<com_amap_api_location_DPoint?>().toList();
|
||||
}
|
||||
|
||||
|
||||
static Future<List<bool?>> isAMapDataAvailable_batch(List<double> var0, List<double> var2) async {
|
||||
assert(var0.length == var2.length);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordinateConverter::isAMapDataAvailable_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__], "var2": var2[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<bool?>().toList();
|
||||
}
|
||||
|
||||
|
||||
static Future<List<double?>> calculateLineDistance_batch(List<com_amap_api_location_DPoint> var0, List<com_amap_api_location_DPoint> var1) async {
|
||||
assert(var0.length == var1.length);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.CoordinateConverter::calculateLineDistance_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__], "var1": var1[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
|
||||
}
|
||||
|
||||
//endregion
|
||||
}
|
@ -0,0 +1,38 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
enum com_amap_api_location_CoordinateConverter_CoordType {
|
||||
BAIDU /* null */,
|
||||
MAPBAR /* null */,
|
||||
MAPABC /* null */,
|
||||
SOSOMAP /* null */,
|
||||
ALIYUN /* null */,
|
||||
GOOGLE /* null */,
|
||||
GPS /* null */
|
||||
}
|
||||
|
||||
extension com_amap_api_location_CoordinateConverter_CoordTypeToX on com_amap_api_location_CoordinateConverter_CoordType {
|
||||
int toValue() {
|
||||
switch (this) {
|
||||
case com_amap_api_location_CoordinateConverter_CoordType.BAIDU: return com_amap_api_location_CoordinateConverter_CoordType.BAIDU.index + 0;
|
||||
case com_amap_api_location_CoordinateConverter_CoordType.MAPBAR: return com_amap_api_location_CoordinateConverter_CoordType.MAPBAR.index + 0;
|
||||
case com_amap_api_location_CoordinateConverter_CoordType.MAPABC: return com_amap_api_location_CoordinateConverter_CoordType.MAPABC.index + 0;
|
||||
case com_amap_api_location_CoordinateConverter_CoordType.SOSOMAP: return com_amap_api_location_CoordinateConverter_CoordType.SOSOMAP.index + 0;
|
||||
case com_amap_api_location_CoordinateConverter_CoordType.ALIYUN: return com_amap_api_location_CoordinateConverter_CoordType.ALIYUN.index + 0;
|
||||
case com_amap_api_location_CoordinateConverter_CoordType.GOOGLE: return com_amap_api_location_CoordinateConverter_CoordType.GOOGLE.index + 0;
|
||||
case com_amap_api_location_CoordinateConverter_CoordType.GPS: return com_amap_api_location_CoordinateConverter_CoordType.GPS.index + 0;
|
||||
default: return 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
extension com_amap_api_location_CoordinateConverter_CoordTypeFromX on int {
|
||||
com_amap_api_location_CoordinateConverter_CoordType tocom_amap_api_location_CoordinateConverter_CoordType() {
|
||||
switch (this) {
|
||||
|
||||
default: return com_amap_api_location_CoordinateConverter_CoordType.values[this + 0];
|
||||
}
|
||||
}
|
||||
}
|
216
lib/src/android/com/amap/api/location/DPoint.g.dart
Normal file
216
lib/src/android/com/amap/api/location/DPoint.g.dart
Normal file
@ -0,0 +1,216 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:amap_location_fluttify/src/android/android.export.g.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:foundation_fluttify/foundation_fluttify.dart';
|
||||
import 'package:core_location_fluttify/core_location_fluttify.dart';
|
||||
import 'package:amap_core_fluttify/amap_core_fluttify.dart';
|
||||
|
||||
class com_amap_api_location_DPoint extends java_lang_Object with android_os_Parcelable {
|
||||
//region constants
|
||||
static const String name__ = 'com.amap.api.location.DPoint';
|
||||
|
||||
@override
|
||||
final String tag__ = 'amap_location_fluttify';
|
||||
|
||||
|
||||
//endregion
|
||||
|
||||
//region creators
|
||||
static Future<com_amap_api_location_DPoint> create__() async {
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod(
|
||||
'ObjectFactory::createcom_amap_api_location_DPoint__',
|
||||
|
||||
);
|
||||
return AmapLocationFluttifyAndroidAs<com_amap_api_location_DPoint>(__result__)!;
|
||||
}
|
||||
|
||||
static Future<com_amap_api_location_DPoint> create__double__double(double var1, double var3) async {
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod(
|
||||
'ObjectFactory::createcom_amap_api_location_DPoint__double__double',
|
||||
{"var1": var1, "var3": var3}
|
||||
);
|
||||
return AmapLocationFluttifyAndroidAs<com_amap_api_location_DPoint>(__result__)!;
|
||||
}
|
||||
|
||||
static Future<List<com_amap_api_location_DPoint>> create_batch__(int length) async {
|
||||
assert(true);
|
||||
final __result_batch__ = await kAmapLocationFluttifyChannel.invokeListMethod(
|
||||
'ObjectFactory::create_batchcom_amap_api_location_DPoint__',
|
||||
{'length': length}
|
||||
);
|
||||
return __result_batch__
|
||||
?.map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_location_DPoint>(it))
|
||||
.where((element) => element !=null)
|
||||
.cast<com_amap_api_location_DPoint>()
|
||||
.toList() ?? <com_amap_api_location_DPoint>[];
|
||||
}
|
||||
|
||||
static Future<List<com_amap_api_location_DPoint>> create_batch__double__double(List<double> var1, List<double> var3) async {
|
||||
assert(var1.length == var3.length);
|
||||
final __result_batch__ = await kAmapLocationFluttifyChannel.invokeListMethod(
|
||||
'ObjectFactory::create_batchcom_amap_api_location_DPoint__double__double',
|
||||
[for (int __i__ = 0; __i__ < var1.length; __i__++) {"var1": var1[__i__], "var3": var3[__i__]}]
|
||||
);
|
||||
return __result_batch__
|
||||
?.map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_location_DPoint>(it))
|
||||
.where((element) => element !=null)
|
||||
.cast<com_amap_api_location_DPoint>()
|
||||
.toList() ?? <com_amap_api_location_DPoint>[];
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
Future<double?> getLongitude() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.DPoint@$refId::getLongitude([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.DPoint::getLongitude', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setLongitude(double var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.DPoint@$refId::setLongitude([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.DPoint::setLongitude', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<double?> getLatitude() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.DPoint@$refId::getLatitude([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.DPoint::getLatitude', {"__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
Future<void> setLatitude(double var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.DPoint@$refId::setLatitude([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.DPoint::setLatitude', {"var1": var1, "__this__": this});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'com_amap_api_location_DPoint{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
|
||||
}
|
||||
}
|
||||
|
||||
extension com_amap_api_location_DPoint_Batch on List<com_amap_api_location_DPoint?> {
|
||||
String? get refId {
|
||||
if (isEmpty) return null;
|
||||
return first?.refId;
|
||||
}
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
Future<List<double?>> getLongitude_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.DPoint::getLongitude_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setLongitude_batch(List<double> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.DPoint::setLongitude_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<double?>> getLatitude_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.DPoint::getLatitude_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<double?>().toList();
|
||||
}
|
||||
|
||||
|
||||
Future<List<void>> setLatitude_batch(List<double> var1) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.DPoint::setLatitude_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"var1": var1[__i__], "__this__": this[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
//endregion
|
||||
}
|
167
lib/src/android/com/amap/api/location/UmidtokenInfo.g.dart
Normal file
167
lib/src/android/com/amap/api/location/UmidtokenInfo.g.dart
Normal file
@ -0,0 +1,167 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
import 'dart:typed_data';
|
||||
|
||||
import 'package:amap_location_fluttify/src/android/android.export.g.dart';
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
|
||||
import 'package:foundation_fluttify/foundation_fluttify.dart';
|
||||
import 'package:core_location_fluttify/core_location_fluttify.dart';
|
||||
import 'package:amap_core_fluttify/amap_core_fluttify.dart';
|
||||
|
||||
class com_amap_api_location_UmidtokenInfo extends java_lang_Object {
|
||||
//region constants
|
||||
static const String name__ = 'com.amap.api.location.UmidtokenInfo';
|
||||
|
||||
@override
|
||||
final String tag__ = 'amap_location_fluttify';
|
||||
|
||||
|
||||
//endregion
|
||||
|
||||
//region creators
|
||||
static Future<com_amap_api_location_UmidtokenInfo> create__() async {
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod(
|
||||
'ObjectFactory::createcom_amap_api_location_UmidtokenInfo__',
|
||||
|
||||
);
|
||||
return AmapLocationFluttifyAndroidAs<com_amap_api_location_UmidtokenInfo>(__result__)!;
|
||||
}
|
||||
|
||||
static Future<List<com_amap_api_location_UmidtokenInfo>> create_batch__(int length) async {
|
||||
assert(true);
|
||||
final __result_batch__ = await kAmapLocationFluttifyChannel.invokeListMethod(
|
||||
'ObjectFactory::create_batchcom_amap_api_location_UmidtokenInfo__',
|
||||
{'length': length}
|
||||
);
|
||||
return __result_batch__
|
||||
?.map((it) => AmapLocationFluttifyAndroidAs<com_amap_api_location_UmidtokenInfo>(it))
|
||||
.where((element) => element !=null)
|
||||
.cast<com_amap_api_location_UmidtokenInfo>()
|
||||
.toList() ?? <com_amap_api_location_UmidtokenInfo>[];
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
static Future<String?> getUmidtoken() async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.UmidtokenInfo::getUmidtoken([])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.UmidtokenInfo::getUmidtoken', );
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
static Future<void> setLocAble(bool var0) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.UmidtokenInfo::setLocAble([\'var0\':$var0])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.UmidtokenInfo::setLocAble', {"var0": var0});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
|
||||
static Future<void> setUmidtoken(android_content_Context var0, String var1) async {
|
||||
// print log
|
||||
if (fluttifyLogEnabled) {
|
||||
debugPrint('fluttify-dart: com.amap.api.location.UmidtokenInfo::setUmidtoken([\'var1\':$var1])');
|
||||
}
|
||||
|
||||
// invoke native method
|
||||
final __result__ = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.UmidtokenInfo::setUmidtoken', {"var0": var0, "var1": var1});
|
||||
|
||||
|
||||
// handle native call
|
||||
|
||||
|
||||
return __result__;
|
||||
}
|
||||
|
||||
//endregion
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return 'com_amap_api_location_UmidtokenInfo{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}';
|
||||
}
|
||||
}
|
||||
|
||||
extension com_amap_api_location_UmidtokenInfo_Batch on List<com_amap_api_location_UmidtokenInfo?> {
|
||||
String? get refId {
|
||||
if (isEmpty) return null;
|
||||
return first?.refId;
|
||||
}
|
||||
|
||||
//region getters
|
||||
|
||||
//endregion
|
||||
|
||||
//region setters
|
||||
|
||||
//endregion
|
||||
|
||||
//region methods
|
||||
|
||||
static Future<List<String?>> getUmidtoken_batch() async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.UmidtokenInfo::getUmidtoken_batch', );
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<String?>().toList();
|
||||
}
|
||||
|
||||
|
||||
static Future<List<void>> setLocAble_batch(List<bool> var0) async {
|
||||
assert(true);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.UmidtokenInfo::setLocAble_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
|
||||
static Future<List<void>> setUmidtoken_batch(List<android_content_Context> var0, List<String> var1) async {
|
||||
assert(var0.length == var1.length);
|
||||
|
||||
// invoke native method
|
||||
final resultBatch = await kAmapLocationFluttifyChannel.invokeMethod('com.amap.api.location.UmidtokenInfo::setUmidtoken_batch', [for (int __i__ = 0; __i__ < var0.length; __i__++) {"var0": var0[__i__], "var1": var1[__i__]}]);
|
||||
|
||||
|
||||
return (resultBatch as List).map((__result__) => __result__).cast<void>().toList();
|
||||
}
|
||||
|
||||
//endregion
|
||||
}
|
10
lib/src/android/constants.g.dart
Normal file
10
lib/src/android/constants.g.dart
Normal file
@ -0,0 +1,10 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
import 'package:flutter/services.dart';
|
||||
import '../facade/shared.g.dart';
|
||||
|
||||
import 'package:amap_location_fluttify/src/ios/ios.export.g.dart';
|
||||
import 'package:amap_location_fluttify/src/android/android.export.g.dart';
|
||||
|
272
lib/src/android/type_op.g.dart
Normal file
272
lib/src/android/type_op.g.dart
Normal file
@ -0,0 +1,272 @@
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import, unused_local_variable, dead_code, unnecessary_cast
|
||||
//////////////////////////////////////////////////////////
|
||||
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
|
||||
//////////////////////////////////////////////////////////
|
||||
|
||||
import 'dart:io';
|
||||
|
||||
import 'package:flutter/foundation.dart';
|
||||
import 'package:flutter/services.dart';
|
||||
import 'package:amap_location_fluttify/src/android/android.export.g.dart';
|
||||
|
||||
import 'package:foundation_fluttify/foundation_fluttify.dart';
|
||||
import 'package:core_location_fluttify/core_location_fluttify.dart';
|
||||
import 'package:amap_core_fluttify/amap_core_fluttify.dart';
|
||||
|
||||
|
||||
// ignore_for_file: non_constant_identifier_names, camel_case_types, missing_return, unused_import
|
||||
// type check
|
||||
@optionalTypeArgs
|
||||
Future<bool> AmapLocationFluttifyAndroidIs<T>(dynamic __this__) async {
|
||||
final typeName = T.toString();
|
||||
if (RegExp(r'^(List<)?(String|int|double)(>)?|(Map<String,(String|int|double)>)$').hasMatch(typeName)) {
|
||||
return __this__ is T;
|
||||
}
|
||||
else if (T == com_amap_api_location_AMapLocationClient) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_location_AMapLocationClient', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == com_amap_api_location_AMapLocationListener) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_location_AMapLocationListener', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == com_amap_api_location_APSService) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_location_APSService', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == com_amap_api_location_DPoint) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_location_DPoint', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == com_amap_api_location_CoordinateConverter) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_location_CoordinateConverter', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == com_amap_api_location_CoordUtil) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_location_CoordUtil', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == com_amap_api_location_UmidtokenInfo) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_location_UmidtokenInfo', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == com_amap_api_location_AMapLocation) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_location_AMapLocation', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == com_amap_api_location_AMapLocationClientOption) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_location_AMapLocationClientOption', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == com_amap_api_location_AMapLocationQualityReport) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_location_AMapLocationQualityReport', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == com_amap_api_fence_DistrictItem) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_fence_DistrictItem', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == com_amap_api_fence_GeoFenceClient) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_fence_GeoFenceClient', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == com_amap_api_fence_GeoFenceListener) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_fence_GeoFenceListener', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == com_amap_api_fence_GeoFence) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_fence_GeoFence', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == com_amap_api_fence_PoiItem) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfcom_amap_api_fence_PoiItem', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_content_Context) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_content_Context', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_content_Intent) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_content_Intent', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_content_ContentProvider) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_content_ContentProvider', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_app_Application) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_app_Application', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_app_Notification) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_app_Notification', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_app_Activity) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_app_Activity', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_app_PendingIntent) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_app_PendingIntent', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_os_Bundle) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_os_Bundle', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_os_Binder) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_os_Binder', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_view_View) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_View', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_view_SurfaceView) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_SurfaceView', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_view_SurfaceHolder) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_SurfaceHolder', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_opengl_GLSurfaceView) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_opengl_GLSurfaceView', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_view_View_OnApplyWindowInsetsListener) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_View_OnApplyWindowInsetsListener', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_view_ViewGroup) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_ViewGroup', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_graphics_Point) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_graphics_Point', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_graphics_PointF) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_graphics_PointF', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_graphics_Bitmap) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_graphics_Bitmap', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_widget_ImageView) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_widget_ImageView', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == java_io_Serializable) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfjava_io_Serializable', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == java_io_File) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfjava_io_File', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_location_Location) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_location_Location', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_view_MotionEvent) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_view_MotionEvent', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_graphics_drawable_Drawable) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_graphics_drawable_Drawable', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_widget_FrameLayout) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_widget_FrameLayout', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_widget_TextView) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_widget_TextView', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_widget_LinearLayout) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_widget_LinearLayout', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_widget_RelativeLayout) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_widget_RelativeLayout', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_os_Parcelable) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_os_Parcelable', {'__this__': __this__});
|
||||
return result;
|
||||
} else if (T == android_util_Pair) {
|
||||
final result = await kAmapLocationFluttifyChannel.invokeMethod('RefClass::isKindOfandroid_util_Pair', {'__this__': __this__});
|
||||
return result;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
// type cast
|
||||
// 给一个可选的泛型, 如果没有指定泛型就返回dynamic
|
||||
@optionalTypeArgs
|
||||
T? AmapLocationFluttifyAndroidAs<T>(dynamic __this__) {
|
||||
final typeName = T.toString();
|
||||
|
||||
if (__this__ == null) {
|
||||
return null;
|
||||
} else if (RegExp(r'^(List<)?(String|int|double)(>)?|(Map<String,(String|int|double)>)$').hasMatch(typeName)) {
|
||||
return __this__ as T;
|
||||
}
|
||||
else if (T == com_amap_api_location_AMapLocationClient) {
|
||||
return (com_amap_api_location_AMapLocationClient()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == com_amap_api_location_AMapLocationListener) {
|
||||
return (com_amap_api_location_AMapLocationListener.subInstance()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == com_amap_api_location_APSService) {
|
||||
return (com_amap_api_location_APSService()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == com_amap_api_location_DPoint) {
|
||||
return (com_amap_api_location_DPoint()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == com_amap_api_location_CoordinateConverter) {
|
||||
return (com_amap_api_location_CoordinateConverter()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == com_amap_api_location_CoordUtil) {
|
||||
return (com_amap_api_location_CoordUtil()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == com_amap_api_location_UmidtokenInfo) {
|
||||
return (com_amap_api_location_UmidtokenInfo()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == com_amap_api_location_AMapLocation) {
|
||||
return (com_amap_api_location_AMapLocation()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == com_amap_api_location_AMapLocationClientOption) {
|
||||
return (com_amap_api_location_AMapLocationClientOption()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == com_amap_api_location_AMapLocationQualityReport) {
|
||||
return (com_amap_api_location_AMapLocationQualityReport()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == com_amap_api_fence_DistrictItem) {
|
||||
return (com_amap_api_fence_DistrictItem()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == com_amap_api_fence_GeoFenceClient) {
|
||||
return (com_amap_api_fence_GeoFenceClient()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == com_amap_api_fence_GeoFenceListener) {
|
||||
return (com_amap_api_fence_GeoFenceListener.subInstance()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == com_amap_api_fence_GeoFence) {
|
||||
return (com_amap_api_fence_GeoFence()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == com_amap_api_fence_PoiItem) {
|
||||
return (com_amap_api_fence_PoiItem()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_content_Context) {
|
||||
return (android_content_Context()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_content_Intent) {
|
||||
return (android_content_Intent()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_content_ContentProvider) {
|
||||
return (android_content_ContentProvider()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_app_Application) {
|
||||
return (android_app_Application()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_app_Notification) {
|
||||
return (android_app_Notification()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_app_Activity) {
|
||||
return (android_app_Activity()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_app_PendingIntent) {
|
||||
return (android_app_PendingIntent()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_os_Bundle) {
|
||||
return (android_os_Bundle()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_os_Binder) {
|
||||
return (android_os_Binder()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_view_View) {
|
||||
return (android_view_View()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_view_SurfaceView) {
|
||||
return (android_view_SurfaceView()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_view_SurfaceHolder) {
|
||||
return (android_view_SurfaceHolder.subInstance()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_opengl_GLSurfaceView) {
|
||||
return (android_opengl_GLSurfaceView()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_view_View_OnApplyWindowInsetsListener) {
|
||||
return (android_view_View_OnApplyWindowInsetsListener.subInstance()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_view_ViewGroup) {
|
||||
return (android_view_ViewGroup()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_graphics_Point) {
|
||||
return (android_graphics_Point()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_graphics_PointF) {
|
||||
return (android_graphics_PointF()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_graphics_Bitmap) {
|
||||
return (android_graphics_Bitmap()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_widget_ImageView) {
|
||||
return (android_widget_ImageView()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == java_io_Serializable) {
|
||||
return (java_io_Serializable.subInstance()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == java_io_File) {
|
||||
return (java_io_File()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_location_Location) {
|
||||
return (android_location_Location()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_view_MotionEvent) {
|
||||
return (android_view_MotionEvent()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_graphics_drawable_Drawable) {
|
||||
return (android_graphics_drawable_Drawable()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_widget_FrameLayout) {
|
||||
return (android_widget_FrameLayout()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_widget_TextView) {
|
||||
return (android_widget_TextView()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_widget_LinearLayout) {
|
||||
return (android_widget_LinearLayout()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_widget_RelativeLayout) {
|
||||
return (android_widget_RelativeLayout()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_os_Parcelable) {
|
||||
return (android_os_Parcelable.subInstance()..refId = (__this__ as Ref).refId) as T;
|
||||
} else if (T == android_util_Pair) {
|
||||
return (android_util_Pair()..refId = (__this__ as Ref).refId) as T;
|
||||
}
|
||||
|
||||
else {
|
||||
return __this__;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user