Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
io.flutter.embedding.android.FlutterEngineProvider Interface Reference
Inheritance diagram for io.flutter.embedding.android.FlutterEngineProvider:
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

FlutterEngine provideFlutterEngine (@NonNull Context context)
 

Detailed Description

Provides a io.flutter.embedding.engine.FlutterEngine instance to be used by a
FlutterActivity
or FlutterFragment.

io.flutter.embedding.engine.FlutterEngine instances require significant time to warm up. Therefore, a developer might choose to hold onto an existing io.flutter.embedding.engine.FlutterEngine and connect it to various FlutterActivitys and/or FlutterFragments. This interface facilitates providing a cached, pre-warmed io.flutter.embedding.engine.FlutterEngine.

Definition at line 22 of file FlutterEngineProvider.java.

Member Function Documentation

◆ provideFlutterEngine()

FlutterEngine io.flutter.embedding.android.FlutterEngineProvider.provideFlutterEngine ( @NonNull Context  context)

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