Commit 87a43534 authored by 余玠's avatar 余玠

add comments

parent b4cd84be
......@@ -45,9 +45,22 @@
- (FlutterViewController *)currentViewController;
#pragma mark - broadcast event to/from flutter
/**
* Native层往Dart层发送事件,事件名称通过eventName指定
*
* @param eventName 事件名称
* @param arguments 参数
*/
- (void)sendEvent:(NSString *)eventName
arguments:(NSDictionary *)arguments;
/**
* 添加监听Dart层调用Native层的事件
*
* @param name 事件名称
* @param listner 事件监听器
*/
- (FLBVoidCallback)addEventListener:(FLBEventListener)listner
forName:(NSString *)name;
......
......@@ -38,7 +38,12 @@
+ (void)didInitPageContainer:(void (^)(NSNumber *))result pageName:(NSString *)pageName params:(NSDictionary *)params uniqueId:(NSString *)uniqueId;
+ (void)willDeallocPageContainer:(void (^)(NSNumber *))result pageName:(NSString *)pageName params:(NSDictionary *)params uniqueId:(NSString *)uniqueId;
/**
* Native层往Dart层发送事件,事件名称通过eventName指定
*
* @param eventName 事件名称
* @param arguments 参数
*/
+ (void)sendEvent:(NSString *)eventName
arguments:(NSDictionary *)arguments;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment