Flutter Engine
The Flutter Engine
|
Public Member Functions | |
void | configureFlutterEngine (@NonNull FlutterEngine flutterEngine) |
void | cleanUpFlutterEngine (@NonNull FlutterEngine flutterEngine) |
Configures a io.flutter.embedding.engine.FlutterEngine
after it is created, e.g., adds plugins.
This interface may be applied to a androidx.fragment.app.FragmentActivity
that owns a FlutterFragment
.
Definition at line 18 of file FlutterEngineConfigurator.java.
void io.flutter.embedding.android.FlutterEngineConfigurator.cleanUpFlutterEngine | ( | @NonNull FlutterEngine | flutterEngine | ) |
Cleans up references that were established in configureFlutterEngine(FlutterEngine)
before the host is destroyed or detached.
flutterEngine | The Flutter engine. |
Implemented in io.flutter.embedding.android.FlutterActivity, io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host, io.flutter.embedding.android.FlutterFragment, and io.flutter.embedding.android.FlutterFragmentActivity.
void io.flutter.embedding.android.FlutterEngineConfigurator.configureFlutterEngine | ( | @NonNull FlutterEngine | flutterEngine | ) |
Configures the given io.flutter.embedding.engine.FlutterEngine
.
This method is called after the given io.flutter.embedding.engine.FlutterEngine
has been attached to the owning FragmentActivity
. See io.flutter.embedding.engine.plugins.activity.ActivityControlSurface#attachToActivity(
ExclusiveAppComponent, Lifecycle)
.
It is possible that the owning FragmentActivity
opted not to connect itself as an io.flutter.embedding.engine.plugins.activity.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.
flutterEngine | The Flutter engine. |
Implemented in io.flutter.embedding.android.FlutterActivity, io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host, io.flutter.embedding.android.FlutterFragment, io.flutter.embedding.android.FlutterFragmentActivity, dev.flutter.scenarios.PlatformViewsActivity, and dev.flutter.scenarios.TestableFlutterActivity.