Interface FlutterEngineFlagsProvider

All Known Implementing Classes:
FlutterEngineFlagsProviderImpl

public interface FlutterEngineFlagsProvider
  • Method Details

    • getFlags

      @NonNull List<String> getFlags(@Nullable Intent intent)
      Get the engine flags set via Intent to configure a new FlutterEngine. 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

      boolean isSoftwareRenderingEnabled(@Nullable Intent intent)
      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.