amap_map/ios/Classes/Util/AMapMethodCallDispatcher.h

28 lines
693 B
Objective-C
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

//
// AMapMethodCallDispatcher.h
// amap_map
//
// Created by lly on 2020/11/16.
//
#import <Foundation/Foundation.h>
#import <Flutter/Flutter.h>
NS_ASSUME_NONNULL_BEGIN
/// methodCall的分发器该对象以Category的形式设置给FlutterMethodChannel作为FlutterMethodCallHandler
/// 再根据call.method来分发处理对应的处理block
@interface AMapMethodCallDispatcher : NSObject
- (void)onMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result;
- (void)addMethodName:(NSString *)methodName withHandler:(FlutterMethodCallHandler)handler;
- (void)removeHandlerWithMethodName:(NSString *)methodName;
- (void)clearAllHandler;
@end
NS_ASSUME_NONNULL_END