onWebContentProcessDidTerminate method

  1. @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')])
void onWebContentProcessDidTerminate()

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:

Use the PlatformInAppBrowserEvents.isMethodSupported method to check if this method 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',
    ),
  ],
)
void onWebContentProcessDidTerminate() {}