terminateWebProcess method

  1. @SupportedPlatforms.new(platforms: [LinuxPlatform(apiName: 'webkit_web_view_terminate_web_process', apiUrl: 'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.WebView.terminate_web_process.html', available: '2.34')])
Future<void> terminateWebProcess()

Terminates the web process associated to the WebView.

When the web process is terminated using this method, the PlatformWebViewCreationParams.onRenderProcessGone callback is invoked with the reason set to indicate the process was terminated by the API.

Note: This is a destructive operation that will crash the web content. Use this only when you need to forcefully kill an unresponsive or misbehaving web process.

Officially Supported Platforms/Implementations:

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

Implementation

@SupportedPlatforms(
  platforms: [
    LinuxPlatform(
      apiName: 'webkit_web_view_terminate_web_process',
      apiUrl:
          'https://wpewebkit.org/reference/stable/wpe-webkit-2.0/method.WebView.terminate_web_process.html',
      available: '2.34',
    ),
  ],
)
Future<void> terminateWebProcess() {
  throw UnimplementedError(
    '${PlatformInAppWebViewControllerMethod.terminateWebProcess.name} is not implemented on the current platform',
  );
}