BUStaticPlugin.h 590 B

12345678910111213141516171819202122
  1. //
  2. // BUStaticPlugin.h
  3. // BURexxar
  4. //
  5. // Created by muhuai on 2017/4/27.
  6. // Copyright © 2017年 muhuai. All rights reserved.
  7. //
  8. #import <Foundation/Foundation.h>
  9. #import "BUJSBDefine.h"
  10. #import "BUJSBCommand.h"
  11. @protocol BURexxarEngine;
  12. typedef void(^BUJSBStaticHandler)(NSDictionary *params, BUJSBResponse completion);
  13. @interface BUStaticPlugin : NSObject
  14. - (void)registerHandlerBlock:(BUJSBStaticHandler)handler forMethodName:(NSString*)method;
  15. - (BOOL)callHandlerWithCommand:(BUJSBCommand *)command engine:(id<BURexxarEngine>)engine completion:(BUJSBResponse)completion;
  16. @end