Commit 06866ee5 authored by 余玠's avatar 余玠

fixbug: 明确回调类型

parent 05a6dec5
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
{ {
DemoRouter *router = [DemoRouter sharedRouter]; DemoRouter *router = [DemoRouter sharedRouter];
[FlutterBoostPlugin.sharedInstance startFlutterWithPlatform:router [FlutterBoostPlugin.sharedInstance startFlutterWithPlatform:router
onStart:^(FlutterEngine *fvc) { onStart:^(FlutterEngine *engine) {
}]; }];
......
...@@ -35,9 +35,7 @@ NS_ASSUME_NONNULL_BEGIN ...@@ -35,9 +35,7 @@ NS_ASSUME_NONNULL_BEGIN
- (id<FLBFlutterProvider>)flutterProvider; - (id<FLBFlutterProvider>)flutterProvider;
- (void)startFlutterWithPlatform:(id<FLBPlatform>)platform - (void)startFlutterWithPlatform:(id<FLBPlatform>)platform
onStart:(void (^)(id<FlutterBinaryMessenger, onStart:(void (^)(FlutterEngine *engine))callback;
FlutterTextureRegistry,
FlutterPluginRegistry> engine))callback;
- (FlutterViewController *)flutterViewController; - (FlutterViewController *)flutterViewController;
......
...@@ -31,9 +31,7 @@ ...@@ -31,9 +31,7 @@
+ (instancetype)sharedInstance; + (instancetype)sharedInstance;
- (void)startFlutterWithPlatform:(id<FLBPlatform>)platform - (void)startFlutterWithPlatform:(id<FLBPlatform>)platform
onStart:(void (^)(id<FlutterBinaryMessenger, onStart:(void (^)(FlutterEngine *engine))callback;
FlutterTextureRegistry,
FlutterPluginRegistry> engine))callback;
#pragma mark - Some properties. #pragma mark - Some properties.
- (BOOL)isRunning; - (BOOL)isRunning;
......
...@@ -124,9 +124,7 @@ ...@@ -124,9 +124,7 @@
} }
- (void)startFlutterWithPlatform:(id<FLBPlatform>)platform - (void)startFlutterWithPlatform:(id<FLBPlatform>)platform
onStart:(void (^)(id<FlutterBinaryMessenger, onStart:(void (^)(FlutterEngine *engine))callback;
FlutterTextureRegistry,
FlutterPluginRegistry> engine))callback;
{ {
static dispatch_once_t onceToken; static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{ dispatch_once(&onceToken, ^{
......
...@@ -59,7 +59,7 @@ ...@@ -59,7 +59,7 @@
} }
- (void)startFlutterWithPlatform:(id<FLBPlatform>)platform - (void)startFlutterWithPlatform:(id<FLBPlatform>)platform
onStart:(void (^)(id<FlutterBinaryMessenger,FlutterTextureRegistry,FlutterPluginRegistry> _Nonnull))callback onStart:(void (^)(FlutterEngine *engine))callback
{ {
static dispatch_once_t onceToken; static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{ dispatch_once(&onceToken, ^{
......
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