keepAlive property

  1. @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), WindowsPlatform()])
InAppWebViewKeepAlive? keepAlive
final

Used to keep alive this WebView. Remember to dispose the InAppWebViewKeepAlive instance using InAppWebViewController.disposeKeepAlive.

Officially Supported Platforms/Implementations:

  • Android WebView
  • iOS WKWebView
  • macOS WKWebView
  • Windows WebView2

Use the PlatformInAppWebViewWidgetCreationParams.isPropertySupported method to check if this property is supported at runtime.

Implementation

@SupportedPlatforms(
  platforms: [
    AndroidPlatform(),
    IOSPlatform(),
    MacOSPlatform(),
    WindowsPlatform(),
  ],
)
final InAppWebViewKeepAlive? keepAlive;