Commit f65d165c authored by peihan.cph's avatar peihan.cph

[Android] 在createEngine增加一个回调,方便在使用测做一些事情(打点之类)

parent 605882d7
......@@ -141,6 +141,9 @@ public class FlutterBoost {
if (mEngine != null) return;
if (mPlatform.lifecycleListener != null) {
mPlatform.lifecycleListener.beforeCreateEngine();
}
FlutterEngine flutterEngine = createEngine();
if (mPlatform.lifecycleListener != null) {
mPlatform.lifecycleListener.onEngineCreated();
......@@ -343,6 +346,9 @@ public class FlutterBoost {
public interface BoostLifecycleListener {
void beforeCreateEngine();
void onEngineCreated();
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