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

39 line
1.0 KiB

  1. /*
  2. * @Author: your name
  3. * @Date: 2020-06-16 15:37:18
  4. * @LastEditTime: 2020-06-20 11:28:22
  5. * @LastEditors: Please set LastEditors
  6. * @Description: In User Settings Edit
  7. * @FilePath: /hairuyi_flutter_comm/ios/Classes/HairuyiFlutterCommNativeProtocol.h
  8. */
  9. //
  10. // ZhiyingCommNativeProtocol.h
  11. // hairuyi_flutter_comm
  12. //
  13. // Created by Weller on 2020/5/16.
  14. //
  15. #import "ZhiyingCommNativeResult.h"
  16. #ifndef ZhiyingCommNativeProtocol_h
  17. #define ZhiyingCommNativeProtocol_h
  18. typedef void (^ZhiyingCommNativeStatus)(ZhiyingCommNativeResult *status);
  19. /// app需要实现协议,使flutter获得更多功能
  20. @protocol ZhiyingCommNativeProtocol <NSObject>
  21. // 公共跳转方法
  22. - (void)openPage:(NSDictionary *)params;
  23. // 跳转原生页面(非公共跳转)
  24. - (void)openNativePage:(NSDictionary *)params;
  25. // 获取设置
  26. - (NSDictionary *)getSetting;
  27. // 调用原生方法
  28. - (void)invokeMethod: (NSString*)method withParams: (NSDictionary *)params status:(ZhiyingCommNativeStatus)status;
  29. @end
  30. #endif /* ZhiyingCommNativeProtocol_h */