Package io.flutter.embedding.engine
Class FlutterEngineGroup.Options
java.lang.Object
io.flutter.embedding.engine.FlutterEngineGroup.Options
- Enclosing class:
- FlutterEngineGroup
Options that control how a FlutterEngine should be created.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
If plugins are automatically registered, then they are registered during theFlutterEngine
's constructor.dartEntrypoint specifies theDartExecutor.DartEntrypoint
the new engine should run.Arguments passed as a list of string to Dart's entrypoint function.The name of the initial Flutter `Navigator` `Route` to load.Manages platform views.boolean
The waitForRestorationData flag controls whether the engine delays responding to requests from the framework for restoration data until that data has been provided to the engine viaRestorationChannel.setRestorationData(byte[] data)
.setAutomaticallyRegisterPlugins
(boolean automaticallyRegisterPlugins) Setter for `automaticallyRegisterPlugins` property.setDartEntrypoint
(DartExecutor.DartEntrypoint dartEntrypoint) Setter for `dartEntrypoint` property.setDartEntrypointArgs
(List<String> dartEntrypointArgs) Setter for `dartEntrypointArgs` property.setInitialRoute
(String initialRoute) Setter for `initialRoute` property.setPlatformViewsController
(PlatformViewsController platformViewsController) Setter for `platformViewsController` property.setWaitForRestorationData
(boolean waitForRestorationData) Setter for `waitForRestorationData` property.
-
Constructor Details
-
Options
-
-
Method Details
-
getContext
-
getDartEntrypoint
dartEntrypoint specifies theDartExecutor.DartEntrypoint
the new engine should run. It doesn't need to be the same entrypoint as the current engine but must be built in the same AOT or snapshot. -
getInitialRoute
The name of the initial Flutter `Navigator` `Route` to load. If this is null, it will default to the "/" route. -
getDartEntrypointArgs
Arguments passed as a list of string to Dart's entrypoint function. -
getPlatformViewsController
Manages platform views. -
getAutomaticallyRegisterPlugins
public boolean getAutomaticallyRegisterPlugins()If plugins are automatically registered, then they are registered during theFlutterEngine
's constructor. -
getWaitForRestorationData
public boolean getWaitForRestorationData()The waitForRestorationData flag controls whether the engine delays responding to requests from the framework for restoration data until that data has been provided to the engine viaRestorationChannel.setRestorationData(byte[] data)
. -
setDartEntrypoint
Setter for `dartEntrypoint` property.- Parameters:
dartEntrypoint
- specifies theDartExecutor.DartEntrypoint
the new engine should run. It doesn't need to be the same entrypoint as the current engine but must be built in the same AOT or snapshot.
-
setInitialRoute
Setter for `initialRoute` property.- Parameters:
initialRoute
- The name of the initial Flutter `Navigator` `Route` to load. If this is null, it will default to the "/" route.
-
setDartEntrypointArgs
Setter for `dartEntrypointArgs` property.- Parameters:
dartEntrypointArgs
- Arguments passed as a list of string to Dart's entrypoint function.
-
setPlatformViewsController
public FlutterEngineGroup.Options setPlatformViewsController(@NonNull PlatformViewsController platformViewsController) Setter for `platformViewsController` property.- Parameters:
platformViewsController
- Manages platform views.
-
setAutomaticallyRegisterPlugins
public FlutterEngineGroup.Options setAutomaticallyRegisterPlugins(boolean automaticallyRegisterPlugins) Setter for `automaticallyRegisterPlugins` property.- Parameters:
automaticallyRegisterPlugins
- If plugins are automatically registered, then they are registered during the execution ofFlutterEngine
's constructor.
-
setWaitForRestorationData
Setter for `waitForRestorationData` property.- Parameters:
waitForRestorationData
- The waitForRestorationData flag controls whether the engine delays responding to requests from the framework for restoration data until that data has been provided to the engine viaRestorationChannel.setRestorationData(byte[] data)
.
-