Commit 5822c69d authored by xgz's avatar xgz

增加回到前台事件

parent 081f7362
......@@ -42,6 +42,7 @@
FlutterBoostPlugin* instance = [self.class sharedInstance];
instance.methodChannel = channel;
[registrar addMethodCallDelegate:instance channel:channel];
[registrar addApplicationDelegate:instance];
}
- (void)handleMethodCall:(FlutterMethodCall*)call result:(FlutterResult)result {
......@@ -215,4 +216,9 @@
self.methodChannel = nil;
self.application = nil;
}
#pragma mark appDelegate
- (void)applicationDidBecomeActive:(UIApplication *)application{
[self sendEvent:@"applicationDidBecomeActive" arguments:@{@"status":@"applicationDidBecomeActive"}];
}
@end
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