Stay organized with collections
Save and categorize content based on your preferences.
WebViewRenderProcess
abstract class WebViewRenderProcess
WebViewRenderProcess provides an opaque handle to a WebView
renderer.
Summary
Public methods |
abstract Boolean |
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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-02-10 UTC."],[],[],null,["# WebViewRenderProcess\n\nAdded in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)\n\nWebViewRenderProcess\n====================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/android/webkit/WebViewRenderProcess \"View this page in Java\") \n\n```\nabstract class WebViewRenderProcess\n```\n\n|---|------------------------------------------|\n| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||\n| ↳ | [android.webkit.WebViewRenderProcess](#) |\n\nWebViewRenderProcess provides an opaque handle to a [WebView](/reference/kotlin/android/webkit/WebView) renderer.\n\nSummary\n-------\n\n| Public constructors ||\n|------------------------------------------------------------|---|\n| [WebViewRenderProcess](#WebViewRenderProcess())`()` \u003cbr /\u003e |\n\n| Public methods ||\n|---------------------------------------------------------------------------------------------|-----------------------------------------------------------------|\n| abstract [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [terminate](#terminate())`()` Cause this renderer to terminate. |\n\nPublic constructors\n-------------------\n\n### WebViewRenderProcess\n\nAdded in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nWebViewRenderProcess()\n```\n\nPublic methods\n--------------\n\n### terminate\n\nAdded in [API level 29](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels) \n\n```\nabstract fun terminate(): Boolean\n```\n\nCause this renderer to terminate.\n\nCalling this on a not yet started, or an already terminated renderer will have no effect.\n\nTerminating a renderer process may have an effect on multiple [WebView](/reference/kotlin/android/webkit/WebView) instances.\n\nRenderer termination must be handled by properly overriding [WebViewClient.onRenderProcessGone](/reference/kotlin/android/webkit/WebViewClient#onRenderProcessGone(android.webkit.WebView,%20android.webkit.RenderProcessGoneDetail)) for every WebView that shares this renderer. If termination is not handled by all associated WebViews, then the application process will also be terminated.\n\n| Return ||\n|------------------------------------------------------------------------------------|--------------------------------------------------------------------------|\n| [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | `true` if it was possible to terminate this renderer, `false` otherwise. |"]]