Interface FlutterEngineFlagsProvider
- All Known Implementing Classes:
FlutterEngineFlagsProviderImpl
public interface FlutterEngineFlagsProvider
-
Method Summary
Modifier and TypeMethodDescriptionGet the engine flags set via Intent to configure a newFlutterEngine.booleanisSoftwareRenderingEnabled(Intent intent) Get whether software rendering is enabled.
-
Method Details
-
getFlags
Get the engine flags set via Intent to configure a newFlutterEngine. Implementations should return an empty list in release builds for security purposes.- Parameters:
intent- The Intent that was used to launch the Flutter component.- Returns:
- The engine flags to pass to a new
FlutterEngine.
-
isSoftwareRenderingEnabled
Get whether software rendering is enabled. Implementations should return false in release builds for security purposes.- Parameters:
intent- The Intent that was used to launch the Flutter component.- Returns:
- Whether software rendering is enabled.
-