disposeKeepAlive method
- @SupportedPlatforms.new(platforms: [AndroidPlatform(), IOSPlatform(), MacOSPlatform(), WindowsPlatform(), LinuxPlatform()])
- InAppWebViewKeepAlive keepAlive
Disposes the WebView that is using the keepAlive instance for the keep alive feature.
Officially Supported Platforms/Implementations:
- Android WebView
- iOS WKWebView
- macOS WKWebView
- Windows WebView2
- Linux WPE WebKit
Parameters - Officially Supported Platforms/Implementations:
keepAlive: all platforms
Use the PlatformInAppWebViewController.isMethodSupported method to check if this method is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
AndroidPlatform(),
IOSPlatform(),
MacOSPlatform(),
WindowsPlatform(),
LinuxPlatform(),
],
)
Future<void> disposeKeepAlive(InAppWebViewKeepAlive keepAlive) {
throw UnimplementedError(
'${PlatformInAppWebViewControllerMethod.disposeKeepAlive.name} is not implemented on the current platform',
);
}