abstract class WebViewRenderProcess

WebViewRenderProcess provides an opaque handle to a WebView renderer.

Summary

Public constructors
Public methods
abstract Boolean

terminate()

Cause this renderer to terminate.

Public constructors

WebViewRenderProcess

WebViewRenderProcess()

Public methods

terminate

abstract fun terminate(): Boolean

Cause this renderer to terminate.

Calling this on a not yet started, or an already terminated renderer will have no effect.

Terminating a renderer process may have an effect on multiple WebView instances.

Renderer termination must be handled by properly overriding WebViewClient.onRenderProcessGone for every WebView that shares this renderer. If termination is not handled by all associated WebViews, then the application process will also be terminated.

Return
Boolean true if it was possible to terminate this renderer, false otherwise.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.