setMemoryUsageTargetLevel method

Future<void> setMemoryUsageTargetLevel(
  1. MemoryUsageTargetLevel level
)

Sets the WebView memory usage target level.

Officially Supported Platforms/Implementations:

Parameters - Officially Supported Platforms/Implementations:

  • level: all platforms

Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.

Implementation

Future<void> setMemoryUsageTargetLevel(MemoryUsageTargetLevel level) =>
    platform.setMemoryUsageTargetLevel(level);