Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
io.flutter.embedding.android.FlutterEngineConfigurator Interface Reference
Inheritance diagram for io.flutter.embedding.android.FlutterEngineConfigurator:
io.flutter.embedding.android.FlutterActivityAndFragmentDelegate.Host io.flutter.embedding.android.FlutterFragmentActivity io.flutter.embedding.android.FlutterActivity io.flutter.embedding.android.FlutterFragment io.flutter.embedding.android.FlutterFragmentActivityTest.FlutterFragmentActivityWithProvidedEngine dev.flutter.scenarios.TestableFlutterActivity io.flutter.embedding.android.FlutterActivityTest.FlutterActivityWithIntentBuilders io.flutter.embedding.android.FlutterActivityTest.FlutterActivityWithProvidedEngine dev.flutter.scenarios.TestActivity dev.flutter.scenarios.ExternalTextureFlutterActivity dev.flutter.scenarios.GetBitmapActivity dev.flutter.scenarios.PlatformViewsActivity dev.flutter.scenarios.SpawnMultiEngineActivity dev.flutter.scenarios.SpawnedEngineActivity

Public Member Functions

void configureFlutterEngine (@NonNull FlutterEngine flutterEngine)
 
void cleanUpFlutterEngine (@NonNull FlutterEngine flutterEngine)
 

Detailed Description

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.

Member Function Documentation

◆ cleanUpFlutterEngine()

void io.flutter.embedding.android.FlutterEngineConfigurator.cleanUpFlutterEngine ( @NonNull FlutterEngine  flutterEngine)

◆ configureFlutterEngine()

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.

Parameters
flutterEngineThe 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.


The documentation for this interface was generated from the following file: