// 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_search_fluttify/src/ios/ios.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 AMapNearbySearchManager extends NSObject { //region constants static const String name__ = 'AMapNearbySearchManager'; @override final String tag__ = 'amap_search_fluttify'; //endregion //region creators //endregion //region getters Future get_uploadTimeInterval() async { final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchManager::get_uploadTimeInterval", {'__this__': this}); return __result__; } Future get_isAutoUploading() async { final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchManager::get_isAutoUploading", {'__this__': this}); return __result__; } //endregion //region setters Future set_uploadTimeInterval(double uploadTimeInterval) async { await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::set_uploadTimeInterval', {'__this__': this, "uploadTimeInterval": uploadTimeInterval}); } Future set_delegate(AMapNearbySearchManagerDelegate delegate) async { await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::set_delegate', {'__this__': this, "delegate": delegate}); } //endregion //region methods static Future sharedInstance() async { // print log if (fluttifyLogEnabled) { debugPrint('fluttify-dart: AMapNearbySearchManager::sharedInstance([])'); } // invoke native method final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::sharedInstance', ); // handle native call return AmapSearchFluttifyIOSAs(__result__); } Future startAutoUploadNearbyInfo() async { // print log if (fluttifyLogEnabled) { debugPrint('fluttify-dart: AMapNearbySearchManager@$refId::startAutoUploadNearbyInfo([])'); } // invoke native method final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::startAutoUploadNearbyInfo', {"__this__": this}); // handle native call return __result__; } Future stopAutoUploadNearbyInfo() async { // print log if (fluttifyLogEnabled) { debugPrint('fluttify-dart: AMapNearbySearchManager@$refId::stopAutoUploadNearbyInfo([])'); } // invoke native method final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::stopAutoUploadNearbyInfo', {"__this__": this}); // handle native call return __result__; } Future uploadNearbyInfo(AMapNearbyUploadInfo info) async { // print log if (fluttifyLogEnabled) { debugPrint('fluttify-dart: AMapNearbySearchManager@$refId::uploadNearbyInfo([])'); } // invoke native method final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::uploadNearbyInfo', {"info": info, "__this__": this}); // handle native call return __result__; } Future clearUserInfoWithID(String userID) async { // print log if (fluttifyLogEnabled) { debugPrint('fluttify-dart: AMapNearbySearchManager@$refId::clearUserInfoWithID([\'userID\':$userID])'); } // invoke native method final __result__ = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::clearUserInfoWithID', {"userID": userID, "__this__": this}); // handle native call return __result__; } //endregion @override String toString() { return 'AMapNearbySearchManager{refId: $refId, runtimeType: $runtimeType, tag__: $tag__}'; } } extension AMapNearbySearchManager_Batch on List { String? get refId { if (isEmpty) return null; return first?.refId; } //region getters Future> get_uploadTimeInterval_batch() async { final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchManager::get_uploadTimeInterval_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> get_isAutoUploading_batch() async { final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchManager::get_isAutoUploading_batch", [for (final __item__ in this) {'__this__': __item__}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } //endregion //region setters Future set_uploadTimeInterval_batch(List uploadTimeInterval) async { await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::set_uploadTimeInterval_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {'__this__': this[__i__], "uploadTimeInterval": uploadTimeInterval[__i__]}]); } //endregion //region methods static Future> sharedInstance_batch() async { assert(true); // invoke native method final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::sharedInstance_batch', ); return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs(__result__)).cast().toList(); } Future> startAutoUploadNearbyInfo_batch() async { assert(true); // invoke native method final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::startAutoUploadNearbyInfo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> stopAutoUploadNearbyInfo_batch() async { assert(true); // invoke native method final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::stopAutoUploadNearbyInfo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"__this__": this[__i__]}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> uploadNearbyInfo_batch(List info) async { assert(true); // invoke native method final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::uploadNearbyInfo_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"info": info[__i__], "__this__": this[__i__]}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } Future> clearUserInfoWithID_batch(List userID) async { assert(true); // invoke native method final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::clearUserInfoWithID_batch', [for (int __i__ = 0; __i__ < this.length; __i__++) {"userID": userID[__i__], "__this__": this[__i__]}]); return (resultBatch as List).map((__result__) => __result__).cast().toList(); } //endregion }