Compartilhar via


WebViewClient.OnPageStarted(WebView, String, Bitmap) Method

Definition

Notify the host application that a page has started loading.

[Android.Runtime.Register("onPageStarted", "(Landroid/webkit/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V", "GetOnPageStarted_Landroid_webkit_WebView_Ljava_lang_String_Landroid_graphics_Bitmap_Handler")]
public virtual void OnPageStarted (Android.Webkit.WebView? view, string? url, Android.Graphics.Bitmap? favicon);
[<Android.Runtime.Register("onPageStarted", "(Landroid/webkit/WebView;Ljava/lang/String;Landroid/graphics/Bitmap;)V", "GetOnPageStarted_Landroid_webkit_WebView_Ljava_lang_String_Landroid_graphics_Bitmap_Handler")>]
abstract member OnPageStarted : Android.Webkit.WebView * string * Android.Graphics.Bitmap -> unit
override this.OnPageStarted : Android.Webkit.WebView * string * Android.Graphics.Bitmap -> unit

Parameters

view
WebView

The WebView that is initiating the callback.

url
String

The url to be loaded.

favicon
Bitmap

The favicon for this page if it already exists in the database.

Attributes

Remarks

Notify the host application that a page has started loading. This method is called once for each main frame load so a page with iframes or framesets will call onPageStarted one time for the main frame. This also means that onPageStarted will not be called when the contents of an embedded frame changes, i.e. clicking a link whose target is an iframe, it will also not be called for fragment navigations (navigations to #fragment_id).

Java documentation for android.webkit.WebViewClient.onPageStarted(android.webkit.WebView, java.lang.String, android.graphics.Bitmap).

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