public interface FlutterEngineConfigurator
FlutterEngine after it is created, e.g., adds
plugins.
This interface may be applied to a FragmentActivity that owns a
FlutterFragment.
| Modifier and Type | Method and Description |
|---|---|
void |
cleanUpFlutterEngine(FlutterEngine flutterEngine)
Cleans up references that were established in
configureFlutterEngine(FlutterEngine)
before the host is destroyed or detached. |
void |
configureFlutterEngine(FlutterEngine flutterEngine)
Configures the given
FlutterEngine. |
void configureFlutterEngine(@NonNull
FlutterEngine flutterEngine)
FlutterEngine.
This method is called after the given FlutterEngine has
been attached to the owning FragmentActivity. See ActivityControlSurface.attachToActivity(
ExclusiveAppComponent, Lifecycle).
It is possible that the owning FragmentActivity opted not to connect itself as an
ActivityControlSurface. In that case, any
configuration, e.g., plugins, must not expect or depend upon an available Activity at
the time that this method is invoked.
void cleanUpFlutterEngine(@NonNull
FlutterEngine flutterEngine)
configureFlutterEngine(FlutterEngine)
before the host is destroyed or detached.