Freigeben über


WebViewClient.OnPageFinished(WebView, String) Method

Definition

Notify the host application that a page has finished loading.

[Android.Runtime.Register("onPageFinished", "(Landroid/webkit/WebView;Ljava/lang/String;)V", "GetOnPageFinished_Landroid_webkit_WebView_Ljava_lang_String_Handler")]
public virtual void OnPageFinished (Android.Webkit.WebView? view, string? url);
[<Android.Runtime.Register("onPageFinished", "(Landroid/webkit/WebView;Ljava/lang/String;)V", "GetOnPageFinished_Landroid_webkit_WebView_Ljava_lang_String_Handler")>]
abstract member OnPageFinished : Android.Webkit.WebView * string -> unit
override this.OnPageFinished : Android.Webkit.WebView * string -> unit

Parameters

view
WebView

The WebView that is initiating the callback.

url
String

The url of the page.

Attributes

Remarks

Notify the host application that a page has finished loading. This method is called only for main frame. Receiving an onPageFinished() callback does not guarantee that the next frame drawn by WebView will reflect the state of the DOM at this point. In order to be notified that the current DOM state is ready to be rendered, request a visual state callback with WebView#postVisualStateCallback and wait for the supplied callback to be triggered.

Java documentation for android.webkit.WebViewClient.onPageFinished(android.webkit.WebView, java.lang.String).

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