Files
amap_search_fluttify/lib/src/ios/AMapNearbySearchManager.g.dart
2024-11-17 15:59:37 +08:00

233 lines
7.7 KiB
Dart

// 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<double?> get_uploadTimeInterval() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchManager::get_uploadTimeInterval", {'__this__': this});
return __result__;
}
Future<bool?> get_isAutoUploading() async {
final __result__ = await kAmapSearchFluttifyChannel.invokeMethod("AMapNearbySearchManager::get_isAutoUploading", {'__this__': this});
return __result__;
}
//endregion
//region setters
Future<void> set_uploadTimeInterval(double uploadTimeInterval) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::set_uploadTimeInterval', <String, dynamic>{'__this__': this, "uploadTimeInterval": uploadTimeInterval});
}
Future<void> set_delegate(AMapNearbySearchManagerDelegate delegate) async {
await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::set_delegate', <String, dynamic>{'__this__': this, "delegate": delegate});
}
//endregion
//region methods
static Future<AMapNearbySearchManager?> 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<AMapNearbySearchManager>(__result__);
}
Future<void> 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<void> 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<bool?> 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<bool?> 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<AMapNearbySearchManager?> {
String? get refId {
if (isEmpty) return null;
return first?.refId;
}
//region getters
Future<List<double?>> 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<double?>().toList();
}
Future<List<bool?>> 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<bool?>().toList();
}
//endregion
//region setters
Future<void> set_uploadTimeInterval_batch(List<double> 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<List<AMapNearbySearchManager?>> sharedInstance_batch() async {
assert(true);
// invoke native method
final resultBatch = await kAmapSearchFluttifyChannel.invokeMethod('AMapNearbySearchManager::sharedInstance_batch', );
return (resultBatch as List).map((__result__) => AmapSearchFluttifyIOSAs<AMapNearbySearchManager>(__result__)).cast<AMapNearbySearchManager?>().toList();
}
Future<List<void>> 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<void>().toList();
}
Future<List<void>> 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<void>().toList();
}
Future<List<bool?>> uploadNearbyInfo_batch(List<AMapNearbyUploadInfo> 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<bool?>().toList();
}
Future<List<bool?>> clearUserInfoWithID_batch(List<String> 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<bool?>().toList();
}
//endregion
}