Commit ec334dcd authored by justin's avatar justin Committed by GitHub

Merge pull request #595 from lucky-chen/develop_performance_data

[Android] 在createEngine增加一个回调,方便在使用测做一些事情(打点之类)
parents ed8b02ae f65d165c
...@@ -162,6 +162,9 @@ public class FlutterBoost { ...@@ -162,6 +162,9 @@ public class FlutterBoost {
if (mEngine != null) return; if (mEngine != null) return;
if (mPlatform.lifecycleListener != null) {
mPlatform.lifecycleListener.beforeCreateEngine();
}
FlutterEngine flutterEngine = createEngine(); FlutterEngine flutterEngine = createEngine();
if (mPlatform.lifecycleListener != null) { if (mPlatform.lifecycleListener != null) {
mPlatform.lifecycleListener.onEngineCreated(); mPlatform.lifecycleListener.onEngineCreated();
...@@ -364,6 +367,9 @@ public class FlutterBoost { ...@@ -364,6 +367,9 @@ public class FlutterBoost {
public interface BoostLifecycleListener { public interface BoostLifecycleListener {
void beforeCreateEngine();
void onEngineCreated(); void onEngineCreated();
void onPluginsRegistered(); void onPluginsRegistered();
......
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