基础库
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.
 
 
 
 
 

26 line
677 B

  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. // 调用原生方法
  14. - (void)invokeMethod: (NSString*)method withParams: (NSDictionary *)params status:(ZhiyingCommNativeStatus)status;
  15. @end
  16. #endif /* ZhiyingCommNativeProtocol_h */