次の方法で共有


WebViewRenderProcessClient.OnRenderProcessUnresponsive Method

Definition

Called when the renderer currently associated with view becomes unresponsive as a result of a long running blocking task such as the execution of JavaScript.

[Android.Runtime.Register("onRenderProcessUnresponsive", "(Landroid/webkit/WebView;Landroid/webkit/WebViewRenderProcess;)V", "GetOnRenderProcessUnresponsive_Landroid_webkit_WebView_Landroid_webkit_WebViewRenderProcess_Handler", ApiSince=29)]
public abstract void OnRenderProcessUnresponsive (Android.Webkit.WebView view, Android.Webkit.WebViewRenderProcess? renderer);
[<Android.Runtime.Register("onRenderProcessUnresponsive", "(Landroid/webkit/WebView;Landroid/webkit/WebViewRenderProcess;)V", "GetOnRenderProcessUnresponsive_Landroid_webkit_WebView_Landroid_webkit_WebViewRenderProcess_Handler", ApiSince=29)>]
abstract member OnRenderProcessUnresponsive : Android.Webkit.WebView * Android.Webkit.WebViewRenderProcess -> unit

Parameters

view
WebView

The WebView for which unresponsiveness was detected.

renderer
WebViewRenderProcess

The WebViewRenderProcess that has become unresponsive, or null if WebView is running in single process mode.

Attributes

Remarks

Called when the renderer currently associated with view becomes unresponsive as a result of a long running blocking task such as the execution of JavaScript.

If a WebView fails to process an input event, or successfully navigate to a new URL within a reasonable time frame, the renderer is considered to be unresponsive, and this callback will be called.

This callback will continue to be called at regular intervals as long as the renderer remains unresponsive. If the renderer becomes responsive again, WebViewRenderProcessClient#onRenderProcessResponsive will be called once, and this method will not subsequently be called unless another period of unresponsiveness is detected.

The minimum interval between successive calls to onRenderProcessUnresponsive is 5 seconds.

No action is taken by WebView as a result of this method call. Applications may choose to terminate the associated renderer via the object that is passed to this callback, if in multiprocess mode, however this must be accompanied by correctly handling WebViewClient#onRenderProcessGone for this WebView, and all other WebViews associated with the same renderer. Failure to do so will result in application termination.

Java documentation for android.webkit.WebViewRenderProcessClient.onRenderProcessUnresponsive(android.webkit.WebView, android.webkit.WebViewRenderProcess).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to