Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- /*
- * @Author: your name
- * @Date: 2020-06-16 15:37:18
- * @LastEditTime: 2020-06-20 11:28:22
- * @LastEditors: Please set LastEditors
- * @Description: In User Settings Edit
- * @FilePath: /hairuyi_flutter_comm/ios/Classes/HairuyiFlutterCommNativeProtocol.h
- */
- //
- // ZhiyingCommNativeProtocol.h
- // hairuyi_flutter_comm
- //
- // Created by Weller on 2020/5/16.
- //
-
- #import "ZhiyingCommNativeResult.h"
-
- #ifndef ZhiyingCommNativeProtocol_h
- #define ZhiyingCommNativeProtocol_h
-
- typedef void (^ZhiyingCommNativeStatus)(ZhiyingCommNativeResult *status);
-
- /// app需要实现协议,使flutter获得更多功能
- @protocol ZhiyingCommNativeProtocol <NSObject>
-
- // 公共跳转方法
- - (void)openPage:(NSDictionary *)params;
- // 跳转原生页面(非公共跳转)
- - (void)openNativePage:(NSDictionary *)params;
- // 获取设置
- - (NSDictionary *)getSetting;
-
- // 调用原生方法
- - (void)invokeMethod: (NSString*)method withParams: (NSDictionary *)params status:(ZhiyingCommNativeStatus)status;
-
- @end
-
- #endif /* ZhiyingCommNativeProtocol_h */
|