Flutter Engine
The Flutter Engine
|
Public Member Functions | |
NewEngineInGroupIntentBuilder ( @NonNull Class<? extends FlutterFragmentActivity > activityClass, @NonNull String engineGroupId) | |
NewEngineInGroupIntentBuilder | dartEntrypoint (@NonNull String dartEntrypoint) |
NewEngineInGroupIntentBuilder | initialRoute (@NonNull String initialRoute) |
NewEngineInGroupIntentBuilder | backgroundMode (@NonNull BackgroundMode backgroundMode) |
Intent | build (@NonNull Context context) |
Builder to create an Intent
that launches a FlutterFragmentActivity
with a new FlutterEngine
by FlutterEngineGroup::createAndRunEngine.
Definition at line 281 of file FlutterFragmentActivity.java.
|
inline |
Constructor that allows this NewEngineInGroupIntentBuilder
to be used by subclasses of FlutterActivity
.
Subclasses of FlutterFragmentActivity
should provide their own static version of withNewEngineInGroup
, which returns an instance of
constructed with a
NewEngineInGroupIntentBuilderClass
reference to the
subclass, e.g.:
FlutterFragmentActivity
return new NewEngineInGroupIntentBuilder(FlutterFragmentActivity.class,
cacheedEngineGroupId);
activityClass | A subclass of FlutterFragmentActivity . |
engineGroupId | The engine group id. |
Definition at line 303 of file FlutterFragmentActivity.java.
|
inline |
The mode of FlutterFragmentActivity
's background, either BackgroundMode#opaque
or BackgroundMode#transparent
.
The default background mode is BackgroundMode#opaque
.
Choosing a background mode of BackgroundMode#transparent
will configure the inner FlutterView
of this FlutterFragmentActivity
to be configured with a FlutterTextureView
to support transparency. This choice has a non-trivial performance impact. A transparent background should only be used if it is necessary for the app design being implemented.
A FlutterFragmentActivity
that is configured with a background mode of BackgroundMode#transparent
must have a theme applied to it that includes the following property: <item name="android:windowIsTranslucent">true</item>
.
Definition at line 350 of file FlutterFragmentActivity.java.
|
inline |
Creates and returns an Intent
that will launch a FlutterFragmentActivity
with the desired configuration.
Definition at line 360 of file FlutterFragmentActivity.java.
|
inline |
The Dart entrypoint that will be executed as soon as the Dart snapshot is loaded, default to "main".
dartEntrypoint | The dart entrypoint's name |
Definition at line 318 of file FlutterFragmentActivity.java.
|
inline |
The initial route that a Flutter app will render in this FlutterFragmentActivity
, defaults to "/".
Definition at line 328 of file FlutterFragmentActivity.java.