amap_search_fluttify

This commit is contained in:
2024-11-17 15:59:37 +08:00
commit 731cf46ce1
435 changed files with 218481 additions and 0 deletions

View File

@ -0,0 +1,15 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import <Flutter/Flutter.h>
typedef void (^Handler)(NSObject <FlutterPluginRegistrar> *, id, FlutterResult);
@interface AmapSearchFluttifyPlugin : NSObject<FlutterPlugin>
- (instancetype) initWithFlutterPluginRegistrar: (NSObject <FlutterPluginRegistrar> *) registrar;
@property(nonatomic) NSObject<FlutterPluginRegistrar>* registrar;
@end

View File

@ -0,0 +1,81 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapSearchFluttifyPlugin.h"
#import <objc/runtime.h>
#import "SubHandler/SubHandler0.h"
#import "SubHandler/SubHandler1.h"
#import "SubHandler/SubHandler2.h"
#import "SubHandler/SubHandler3.h"
#import "SubHandler/SubHandler4.h"
#import "SubHandler/SubHandler5.h"
#import "SubHandler/SubHandler6.h"
#import "SubHandler/SubHandler7.h"
#import "SubHandler/SubHandler8.h"
#import "SubHandler/SubHandler9.h"
#import "SubHandler/SubHandler10.h"
#import "SubHandler/SubHandler11.h"
#import "SubHandler/Custom/SubHandlerCustom.h"
#import "FluttifyMessageCodec.h"
#import <AMapSearchKit/AMapSearchKit.h>
// Dart, MethodChannel,
extern NSMutableDictionary<NSString*, NSObject*>* STACK;
// Dart
extern NSMutableDictionary<NSString*, NSObject*>* HEAP;
//
extern BOOL enableLog;
@implementation AmapSearchFluttifyPlugin {
NSMutableDictionary<NSString*, Handler>* _handlerMap;
}
- (instancetype) initWithFlutterPluginRegistrar: (NSObject <FlutterPluginRegistrar> *) registrar {
self = [super init];
if (self) {
_registrar = registrar;
//
_handlerMap = @{}.mutableCopy;
[_handlerMap addEntriesFromDictionary: [self getSubHandler0]];
[_handlerMap addEntriesFromDictionary: [self getSubHandler1]];
[_handlerMap addEntriesFromDictionary: [self getSubHandler2]];
[_handlerMap addEntriesFromDictionary: [self getSubHandler3]];
[_handlerMap addEntriesFromDictionary: [self getSubHandler4]];
[_handlerMap addEntriesFromDictionary: [self getSubHandler5]];
[_handlerMap addEntriesFromDictionary: [self getSubHandler6]];
[_handlerMap addEntriesFromDictionary: [self getSubHandler7]];
[_handlerMap addEntriesFromDictionary: [self getSubHandler8]];
[_handlerMap addEntriesFromDictionary: [self getSubHandler9]];
[_handlerMap addEntriesFromDictionary: [self getSubHandler10]];
[_handlerMap addEntriesFromDictionary: [self getSubHandler11]];
[_handlerMap addEntriesFromDictionary: [self getSubHandlerCustom]];
}
return self;
}
+ (void)registerWithRegistrar:(NSObject <FlutterPluginRegistrar> *)registrar {
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:@"me.yohom/amap_search_fluttify"
binaryMessenger:[registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
[registrar addMethodCallDelegate:[[AmapSearchFluttifyPlugin alloc] initWithFlutterPluginRegistrar:registrar]
channel:channel];
// View
}
// Method Handlers
- (void)handleMethodCall:(FlutterMethodCall *)methodCall result:(FlutterResult)methodResult {
if (_handlerMap[methodCall.method] != nil) {
_handlerMap[methodCall.method](_registrar, [methodCall arguments], methodResult);
} else {
methodResult(FlutterMethodNotImplemented);
}
}
@end

View File

@ -0,0 +1,21 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import <Foundation/Foundation.h>
#import <AMapSearchKit/AMapSearchKit.h>
@protocol FlutterPluginRegistrar;
NS_ASSUME_NONNULL_BEGIN
@interface AMapNearbySearchManagerDelegate_Anonymous : NSObject<AMapNearbySearchManagerDelegate>
- (instancetype) initWithFlutterPluginRegistrar: (NSObject <FlutterPluginRegistrar> *) registrar;
@property(nonatomic) NSObject<FlutterPluginRegistrar>* registrar;
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,103 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AMapNearbySearchManagerDelegate_Anonymous.h"
#import <Flutter/Flutter.h>
#import "FluttifyMessageCodec.h"
#import <objc/runtime.h>
// Dart, MethodChannel,
extern NSMutableDictionary<NSString*, NSObject*>* STACK;
// Dart
extern NSMutableDictionary<NSString*, NSObject*>* HEAP;
//
extern BOOL enableLog;
@implementation AMapNearbySearchManagerDelegate_Anonymous
- (instancetype) initWithFlutterPluginRegistrar: (NSObject <FlutterPluginRegistrar> *) registrar {
self = [super init];
if (self) {
_registrar = registrar;
}
return self;
}
- (AMapNearbyUploadInfo*)nearbyInfoForUploading : (AMapNearbySearchManager*)manager
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapNearbySearchManagerDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapNearbySearchManagerDelegate::nearbyInfoForUploading");
}
// convert to jsonable arg
// ref callback arg
AMapNearbySearchManager* argmanager = manager;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"nearbyInfoForUploading"
arguments:@{@"manager": argmanager == nil ? [NSNull null] : argmanager}
result:^(id result) {}]; // , ,
});
// fluttermethod channel,
// issue https://github.com/flutter/flutter/issues/28310
NSLog(@"暂不支持有返回值的回调方法");
////////////////////////////, /////////////////////////////
////////////////////////////////////////////////////////////////////////////////
return (AMapNearbyUploadInfo*) nil;
}
- (void)onNearbyInfoUploadedWithError : (NSError*)error
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapNearbySearchManagerDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapNearbySearchManagerDelegate::onNearbyInfoUploadedWithError");
}
// convert to jsonable arg
// ref callback arg
NSError* argerror = error;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onNearbyInfoUploadedWithError" arguments:@{@"error": argerror == nil ? [NSNull null] : argerror}];
});
}
- (void)onUserInfoClearedWithError : (NSError*)error
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapNearbySearchManagerDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapNearbySearchManagerDelegate::onUserInfoClearedWithError");
}
// convert to jsonable arg
// ref callback arg
NSError* argerror = error;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onUserInfoClearedWithError" arguments:@{@"error": argerror == nil ? [NSNull null] : argerror}];
});
}
@end

View File

@ -0,0 +1,21 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import <Foundation/Foundation.h>
#import <AMapSearchKit/AMapSearchKit.h>
@protocol FlutterPluginRegistrar;
NS_ASSUME_NONNULL_BEGIN
@interface AMapSearchDelegate_Anonymous : NSObject<AMapSearchDelegate>
- (instancetype) initWithFlutterPluginRegistrar: (NSObject <FlutterPluginRegistrar> *) registrar;
@property(nonatomic) NSObject<FlutterPluginRegistrar>* registrar;
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,397 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AMapSearchDelegate_Anonymous.h"
#import <Flutter/Flutter.h>
#import "FluttifyMessageCodec.h"
#import <objc/runtime.h>
// Dart, MethodChannel,
extern NSMutableDictionary<NSString*, NSObject*>* STACK;
// Dart
extern NSMutableDictionary<NSString*, NSObject*>* HEAP;
//
extern BOOL enableLog;
@implementation AMapSearchDelegate_Anonymous
- (instancetype) initWithFlutterPluginRegistrar: (NSObject <FlutterPluginRegistrar> *) registrar {
self = [super init];
if (self) {
_registrar = registrar;
}
return self;
}
- (void)AMapSearchRequest : (id)request didFailWithError: (NSError*)error
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapSearchDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapSearchDelegate::AMapSearchRequest_didFailWithError");
}
// convert to jsonable arg
// ref callback arg
id argrequest = request;
// ref callback arg
NSError* argerror = error;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"AMapSearchRequest_didFailWithError" arguments:@{@"request": argrequest == nil ? [NSNull null] : argrequest, @"error": argerror == nil ? [NSNull null] : argerror}];
});
}
- (void)onPOISearchDone : (AMapPOISearchBaseRequest*)request response: (AMapPOISearchResponse*)response
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapSearchDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapSearchDelegate::onPOISearchDone_response");
}
// convert to jsonable arg
// ref callback arg
AMapPOISearchBaseRequest* argrequest = request;
// ref callback arg
AMapPOISearchResponse* argresponse = response;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onPOISearchDone_response" arguments:@{@"request": argrequest == nil ? [NSNull null] : argrequest, @"response": argresponse == nil ? [NSNull null] : argresponse}];
});
}
- (void)onRoutePOISearchDone : (AMapRoutePOISearchRequest*)request response: (AMapRoutePOISearchResponse*)response
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapSearchDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapSearchDelegate::onRoutePOISearchDone_response");
}
// convert to jsonable arg
// ref callback arg
AMapRoutePOISearchRequest* argrequest = request;
// ref callback arg
AMapRoutePOISearchResponse* argresponse = response;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onRoutePOISearchDone_response" arguments:@{@"request": argrequest == nil ? [NSNull null] : argrequest, @"response": argresponse == nil ? [NSNull null] : argresponse}];
});
}
- (void)onGeocodeSearchDone : (AMapGeocodeSearchRequest*)request response: (AMapGeocodeSearchResponse*)response
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapSearchDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapSearchDelegate::onGeocodeSearchDone_response");
}
// convert to jsonable arg
// ref callback arg
AMapGeocodeSearchRequest* argrequest = request;
// ref callback arg
AMapGeocodeSearchResponse* argresponse = response;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onGeocodeSearchDone_response" arguments:@{@"request": argrequest == nil ? [NSNull null] : argrequest, @"response": argresponse == nil ? [NSNull null] : argresponse}];
});
}
- (void)onReGeocodeSearchDone : (AMapReGeocodeSearchRequest*)request response: (AMapReGeocodeSearchResponse*)response
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapSearchDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapSearchDelegate::onReGeocodeSearchDone_response");
}
// convert to jsonable arg
// ref callback arg
AMapReGeocodeSearchRequest* argrequest = request;
// ref callback arg
AMapReGeocodeSearchResponse* argresponse = response;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onReGeocodeSearchDone_response" arguments:@{@"request": argrequest == nil ? [NSNull null] : argrequest, @"response": argresponse == nil ? [NSNull null] : argresponse}];
});
}
- (void)onInputTipsSearchDone : (AMapInputTipsSearchRequest*)request response: (AMapInputTipsSearchResponse*)response
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapSearchDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapSearchDelegate::onInputTipsSearchDone_response");
}
// convert to jsonable arg
// ref callback arg
AMapInputTipsSearchRequest* argrequest = request;
// ref callback arg
AMapInputTipsSearchResponse* argresponse = response;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onInputTipsSearchDone_response" arguments:@{@"request": argrequest == nil ? [NSNull null] : argrequest, @"response": argresponse == nil ? [NSNull null] : argresponse}];
});
}
- (void)onBusStopSearchDone : (AMapBusStopSearchRequest*)request response: (AMapBusStopSearchResponse*)response
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapSearchDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapSearchDelegate::onBusStopSearchDone_response");
}
// convert to jsonable arg
// ref callback arg
AMapBusStopSearchRequest* argrequest = request;
// ref callback arg
AMapBusStopSearchResponse* argresponse = response;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onBusStopSearchDone_response" arguments:@{@"request": argrequest == nil ? [NSNull null] : argrequest, @"response": argresponse == nil ? [NSNull null] : argresponse}];
});
}
- (void)onBusLineSearchDone : (AMapBusLineBaseSearchRequest*)request response: (AMapBusLineSearchResponse*)response
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapSearchDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapSearchDelegate::onBusLineSearchDone_response");
}
// convert to jsonable arg
// ref callback arg
AMapBusLineBaseSearchRequest* argrequest = request;
// ref callback arg
AMapBusLineSearchResponse* argresponse = response;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onBusLineSearchDone_response" arguments:@{@"request": argrequest == nil ? [NSNull null] : argrequest, @"response": argresponse == nil ? [NSNull null] : argresponse}];
});
}
- (void)onDistrictSearchDone : (AMapDistrictSearchRequest*)request response: (AMapDistrictSearchResponse*)response
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapSearchDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapSearchDelegate::onDistrictSearchDone_response");
}
// convert to jsonable arg
// ref callback arg
AMapDistrictSearchRequest* argrequest = request;
// ref callback arg
AMapDistrictSearchResponse* argresponse = response;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onDistrictSearchDone_response" arguments:@{@"request": argrequest == nil ? [NSNull null] : argrequest, @"response": argresponse == nil ? [NSNull null] : argresponse}];
});
}
- (void)onRouteSearchDone : (AMapRouteSearchBaseRequest*)request response: (AMapRouteSearchResponse*)response
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapSearchDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapSearchDelegate::onRouteSearchDone_response");
}
// convert to jsonable arg
// ref callback arg
AMapRouteSearchBaseRequest* argrequest = request;
// ref callback arg
AMapRouteSearchResponse* argresponse = response;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onRouteSearchDone_response" arguments:@{@"request": argrequest == nil ? [NSNull null] : argrequest, @"response": argresponse == nil ? [NSNull null] : argresponse}];
});
}
- (void)onFutureRouteSearchDone : (AMapRouteSearchBaseRequest*)request response: (AMapFutureRouteSearchResponse*)response
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapSearchDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapSearchDelegate::onFutureRouteSearchDone_response");
}
// convert to jsonable arg
// ref callback arg
AMapRouteSearchBaseRequest* argrequest = request;
// ref callback arg
AMapFutureRouteSearchResponse* argresponse = response;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onFutureRouteSearchDone_response" arguments:@{@"request": argrequest == nil ? [NSNull null] : argrequest, @"response": argresponse == nil ? [NSNull null] : argresponse}];
});
}
- (void)onDistanceSearchDone : (AMapDistanceSearchRequest*)request response: (AMapDistanceSearchResponse*)response
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapSearchDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapSearchDelegate::onDistanceSearchDone_response");
}
// convert to jsonable arg
// ref callback arg
AMapDistanceSearchRequest* argrequest = request;
// ref callback arg
AMapDistanceSearchResponse* argresponse = response;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onDistanceSearchDone_response" arguments:@{@"request": argrequest == nil ? [NSNull null] : argrequest, @"response": argresponse == nil ? [NSNull null] : argresponse}];
});
}
- (void)onWeatherSearchDone : (AMapWeatherSearchRequest*)request response: (AMapWeatherSearchResponse*)response
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapSearchDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapSearchDelegate::onWeatherSearchDone_response");
}
// convert to jsonable arg
// ref callback arg
AMapWeatherSearchRequest* argrequest = request;
// ref callback arg
AMapWeatherSearchResponse* argresponse = response;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onWeatherSearchDone_response" arguments:@{@"request": argrequest == nil ? [NSNull null] : argrequest, @"response": argresponse == nil ? [NSNull null] : argresponse}];
});
}
- (void)onNearbySearchDone : (AMapNearbySearchRequest*)request response: (AMapNearbySearchResponse*)response
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapSearchDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapSearchDelegate::onNearbySearchDone_response");
}
// convert to jsonable arg
// ref callback arg
AMapNearbySearchRequest* argrequest = request;
// ref callback arg
AMapNearbySearchResponse* argresponse = response;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onNearbySearchDone_response" arguments:@{@"request": argrequest == nil ? [NSNull null] : argrequest, @"response": argresponse == nil ? [NSNull null] : argresponse}];
});
}
- (void)onCloudSearchDone : (AMapCloudSearchBaseRequest*)request response: (AMapCloudPOISearchResponse*)response
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapSearchDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapSearchDelegate::onCloudSearchDone_response");
}
// convert to jsonable arg
// ref callback arg
AMapCloudSearchBaseRequest* argrequest = request;
// ref callback arg
AMapCloudPOISearchResponse* argresponse = response;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onCloudSearchDone_response" arguments:@{@"request": argrequest == nil ? [NSNull null] : argrequest, @"response": argresponse == nil ? [NSNull null] : argresponse}];
});
}
- (void)onShareSearchDone : (AMapShareSearchBaseRequest*)request response: (AMapShareSearchResponse*)response
{
FlutterMethodChannel *channel = [FlutterMethodChannel
methodChannelWithName:[NSString stringWithFormat:@"AMapSearchDelegate::Callback@%@:%@", NSStringFromClass([self class]), @(self.hash)]
binaryMessenger:[_registrar messenger]
codec:[FlutterStandardMethodCodec codecWithReaderWriter:[[FluttifyReaderWriter alloc] init]]];
// print log
if (enableLog) {
NSLog(@"AMapSearchDelegate::onShareSearchDone_response");
}
// convert to jsonable arg
// ref callback arg
AMapShareSearchBaseRequest* argrequest = request;
// ref callback arg
AMapShareSearchResponse* argresponse = response;
dispatch_async(dispatch_get_main_queue(), ^{
[channel invokeMethod:@"onShareSearchDone_response" arguments:@{@"request": argrequest == nil ? [NSNull null] : argrequest, @"response": argresponse == nil ? [NSNull null] : argresponse}];
});
}
@end

View File

@ -0,0 +1,13 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapSearchFluttifyPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface AmapSearchFluttifyPlugin (SubHandlerCustom)
- (NSDictionary<NSString*, Handler>*) getSubHandlerCustom;
@end
NS_ASSUME_NONNULL_END

View File

@ -0,0 +1,23 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "SubHandlerCustom.h"
#import "FluttifyMessageCodec.h"
// Dart, MethodChannel,
extern NSMutableDictionary<NSString*, NSObject*>* STACK;
// Dart
extern NSMutableDictionary<NSString*, NSObject*>* HEAP;
//
extern BOOL enableLog;
@implementation AmapSearchFluttifyPlugin (SubHandlerCustom)
- (NSDictionary<NSString*, Handler>*) getSubHandlerCustom {
__weak __typeof(self)weakSelf = self;
return @{
};
}
@end

View File

@ -0,0 +1,13 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapSearchFluttifyPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface AmapSearchFluttifyPlugin (SubHandler0)
- (NSDictionary<NSString*, Handler>*) getSubHandler0;
@end
NS_ASSUME_NONNULL_END

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapSearchFluttifyPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface AmapSearchFluttifyPlugin (SubHandler1)
- (NSDictionary<NSString*, Handler>*) getSubHandler1;
@end
NS_ASSUME_NONNULL_END

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapSearchFluttifyPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface AmapSearchFluttifyPlugin (SubHandler10)
- (NSDictionary<NSString*, Handler>*) getSubHandler10;
@end
NS_ASSUME_NONNULL_END

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapSearchFluttifyPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface AmapSearchFluttifyPlugin (SubHandler11)
- (NSDictionary<NSString*, Handler>*) getSubHandler11;
@end
NS_ASSUME_NONNULL_END

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapSearchFluttifyPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface AmapSearchFluttifyPlugin (SubHandler2)
- (NSDictionary<NSString*, Handler>*) getSubHandler2;
@end
NS_ASSUME_NONNULL_END

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapSearchFluttifyPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface AmapSearchFluttifyPlugin (SubHandler3)
- (NSDictionary<NSString*, Handler>*) getSubHandler3;
@end
NS_ASSUME_NONNULL_END

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapSearchFluttifyPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface AmapSearchFluttifyPlugin (SubHandler4)
- (NSDictionary<NSString*, Handler>*) getSubHandler4;
@end
NS_ASSUME_NONNULL_END

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapSearchFluttifyPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface AmapSearchFluttifyPlugin (SubHandler5)
- (NSDictionary<NSString*, Handler>*) getSubHandler5;
@end
NS_ASSUME_NONNULL_END

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapSearchFluttifyPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface AmapSearchFluttifyPlugin (SubHandler6)
- (NSDictionary<NSString*, Handler>*) getSubHandler6;
@end
NS_ASSUME_NONNULL_END

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapSearchFluttifyPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface AmapSearchFluttifyPlugin (SubHandler7)
- (NSDictionary<NSString*, Handler>*) getSubHandler7;
@end
NS_ASSUME_NONNULL_END

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapSearchFluttifyPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface AmapSearchFluttifyPlugin (SubHandler8)
- (NSDictionary<NSString*, Handler>*) getSubHandler8;
@end
NS_ASSUME_NONNULL_END

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,13 @@
//////////////////////////////////////////////////////////
// GENERATED BY FLUTTIFY. DO NOT EDIT IT.
//////////////////////////////////////////////////////////
#import "AmapSearchFluttifyPlugin.h"
NS_ASSUME_NONNULL_BEGIN
@interface AmapSearchFluttifyPlugin (SubHandler9)
- (NSDictionary<NSString*, Handler>*) getSubHandler9;
@end
NS_ASSUME_NONNULL_END

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,44 @@
#
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = 'amap_search_fluttify'
s.version = '0.0.1'
s.summary = 'An `Amap Search` Map Component, Powered By `Fluttify`, A Compiler Generating Dart Bindings For Native SDK.'
s.description = <<-DESC
A new flutter plugin project.
DESC
s.homepage = 'https://github.com/fluttify-project'
s.license = { :file => '../LICENSE' }
s.author = { 'yohom' => 'yohombao@qq.com' }
s.source = { :path => '.' }
s.source_files = 'Classes/**/*'
s.public_header_files = ['Classes/**/*.h', 'Vendors/*.h'] # 只接收顶层的.h文件, 防止framework下面的.h文件被包含
s.dependency 'Flutter'
s.dependency 'foundation_fluttify'
# flutter plugin dependency
# sdk dependency
s.dependency 'AMapSearch-NO-IDFA', '9.2.0'
s.static_framework = true
s.ios.deployment_target = '8.0'
# include project framework
s.vendored_frameworks = 'Vendors/*.framework'
# include project .a
s.vendored_libraries = 'Vendors/*.a'
# ios system framework
s.frameworks = [
]
# ios system library
s.libraries = [
]
# resources
s.resources = 'Vendors/**/*.bundle'
# s.resource_bundles = {
# 'amap_search_fluttify' => ['Vendors/*.framework/*.bundle']
# }
end