onWebContentProcessDidTerminate property
- @SupportedPlatforms.new(platforms: [IOSPlatform(apiName: 'WKNavigationDelegate.webViewWebContentProcessDidTerminate', apiUrl: 'https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455639-webviewwebcontentprocessdidtermi'), MacOSPlatform(apiName: 'WKNavigationDelegate.webViewWebContentProcessDidTerminate', apiUrl: 'https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455639-webviewwebcontentprocessdidtermi'), WindowsPlatform(apiName: 'ICoreWebView2.add_ProcessFailed', apiUrl: 'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.2849.39#add_processfailed')])
final
Invoked when the web view's web content process is terminated. Reloading the page will start a new render process if needed.
Officially Supported Platforms/Implementations:
- iOS WKWebView (Official API - WKNavigationDelegate.webViewWebContentProcessDidTerminate)
- macOS WKWebView (Official API - WKNavigationDelegate.webViewWebContentProcessDidTerminate)
- Windows WebView2 (Official API - ICoreWebView2.add_ProcessFailed)
Use the PlatformWebViewCreationParams.isPropertySupported method to check if this property is supported at runtime.
Implementation
@SupportedPlatforms(
platforms: [
IOSPlatform(
apiName: 'WKNavigationDelegate.webViewWebContentProcessDidTerminate',
apiUrl:
'https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455639-webviewwebcontentprocessdidtermi',
),
MacOSPlatform(
apiName: 'WKNavigationDelegate.webViewWebContentProcessDidTerminate',
apiUrl:
'https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455639-webviewwebcontentprocessdidtermi',
),
WindowsPlatform(
apiName: 'ICoreWebView2.add_ProcessFailed',
apiUrl:
'https://learn.microsoft.com/en-us/microsoft-edge/webview2/reference/win32/icorewebview2?view=webview2-1.0.2849.39#add_processfailed',
),
],
)
final void Function(T controller)? onWebContentProcessDidTerminate;