Class FlutterEngineFlagsProviderImpl

java.lang.Object
io.flutter.embedding.engine.flags.FlutterEngineFlagsProviderImpl
All Implemented Interfaces:
FlutterEngineFlagsProvider

public final class FlutterEngineFlagsProviderImpl extends Object implements FlutterEngineFlagsProvider
  • Field Details

  • Method Details

    • getFlags

      @NonNull public List<String> getFlags(@Nullable Intent intent)
      Description copied from interface: FlutterEngineFlagsProvider
      Get the engine flags set via Intent to configure a new FlutterEngine. Implementations should return an empty list in release builds for security purposes.
      Specified by:
      getFlags in interface FlutterEngineFlagsProvider
      Parameters:
      intent - The Intent that was used to launch the Flutter component.
      Returns:
      The engine flags to pass to a new FlutterEngine.
    • isSoftwareRenderingEnabled

      public boolean isSoftwareRenderingEnabled(@Nullable Intent intent)
      Description copied from interface: FlutterEngineFlagsProvider
      Get whether software rendering is enabled. Implementations should return false in release builds for security purposes.
      Specified by:
      isSoftwareRenderingEnabled in interface FlutterEngineFlagsProvider
      Parameters:
      intent - The Intent that was used to launch the Flutter component.
      Returns:
      Whether software rendering is enabled.