Flutter Engine
The Flutter Engine
|
Public Member Functions | |
void | onCreate () |
Flutter's extension of SplitCompatApplication
that injects a PlayStoreDeferredComponentManager
with FlutterInjector
to enable Split AOT Flutter apps.
To use this class, either have your custom application class extend FlutterPlayStoreSplitApplication or use it directly in the app's AndroidManifest.xml by adding the following line:
<manifest
...
<application
android:name="io.flutter.embedding.android.FlutterPlayStoreSplitApplication"
...>
</application>
</manifest>
This class is meant to be used with the Google Play store. Custom non-play store applications do not need to extend com.google.android.play.core.splitcompat.SplitCompatApplication
and should inject a custom io.flutter.embedding.engine.deferredcomponents.DeferredComponentManager
implementation like so:
FlutterInjector.setInstance(
new FlutterInjector.Builder().setDeferredComponentManager(yourCustomManager).build());
Definition at line 42 of file FlutterPlayStoreSplitApplication.java.
|
inline |
Definition at line 45 of file FlutterPlayStoreSplitApplication.java.