AMapMethodCallDispatcher.h 701 B

123456789101112131415161718192021222324252627
  1. //
  2. // AMapMethodCallDispatcher.h
  3. // amap_flutter_map
  4. //
  5. // Created by lly on 2020/11/16.
  6. //
  7. #import <Foundation/Foundation.h>
  8. #import <Flutter/Flutter.h>
  9. NS_ASSUME_NONNULL_BEGIN
  10. /// methodCall的分发器,该对象以Category的形式设置给FlutterMethodChannel,作为FlutterMethodCallHandler,
  11. /// 再根据call.method来分发处理对应的处理block
  12. @interface AMapMethodCallDispatcher : NSObject
  13. - (void)onMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result;
  14. - (void)addMethodName:(NSString *)methodName withHandler:(FlutterMethodCallHandler)handler;
  15. - (void)removeHandlerWithMethodName:(NSString *)methodName;
  16. - (void)clearAllHandler;
  17. @end
  18. NS_ASSUME_NONNULL_END