Class FlutterEngineFlagsProviderImpl
java.lang.Object
io.flutter.embedding.engine.flags.FlutterEngineFlagsProviderImpl
- All Implemented Interfaces:
FlutterEngineFlagsProvider
public final class FlutterEngineFlagsProviderImpl
extends Object
implements FlutterEngineFlagsProvider
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionGet the engine flags set via Intent to configure a newFlutterEngine.booleanisSoftwareRenderingEnabled(Intent intent) Get whether software rendering is enabled.
-
Field Details
-
INSTANCE
-
-
Method Details
-
getFlags
Description copied from interface:FlutterEngineFlagsProviderGet the engine flags set via Intent to configure a newFlutterEngine. Implementations should return an empty list in release builds for security purposes.- Specified by:
getFlagsin interfaceFlutterEngineFlagsProvider- Parameters:
intent- The Intent that was used to launch the Flutter component.- Returns:
- The engine flags to pass to a new
FlutterEngine.
-
isSoftwareRenderingEnabled
Description copied from interface:FlutterEngineFlagsProviderGet whether software rendering is enabled. Implementations should return false in release builds for security purposes.- Specified by:
isSoftwareRenderingEnabledin interfaceFlutterEngineFlagsProvider- Parameters:
intent- The Intent that was used to launch the Flutter component.- Returns:
- Whether software rendering is enabled.
-