基础库
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ZhiyingCommNativeProtocol.h 728 B

4 年之前
4 年之前
123456789101112131415161718192021222324252627
  1. #import "ZhiyingCommNativeResult.h"
  2. #ifndef ZhiyingCommNativeProtocol_h
  3. #define ZhiyingCommNativeProtocol_h
  4. typedef void (^ZhiyingCommNativeStatus)(ZhiyingCommNativeResult *status);
  5. /// app需要实现协议,使flutter获得更多功能
  6. @protocol ZhiyingCommNativeProtocol <NSObject>
  7. // 公共跳转方法
  8. - (void)openPage:(NSDictionary *)params;
  9. // 跳转原生页面(非公共跳转)
  10. - (void)openNativePage:(NSDictionary *)params;
  11. // 获取设置
  12. - (NSDictionary *)getSetting;
  13. - (void)notifyInitSuccess:(NSDictionary *)params;
  14. // 调用原生方法
  15. - (void)invokeMethod: (NSString*)method withParams: (NSDictionary *)params status:(ZhiyingCommNativeStatus)status;
  16. @end
  17. #endif /* ZhiyingCommNativeProtocol_h */