WebViewClient.ShouldOverrideUrlLoading Method

Definition

Overloads

ShouldOverrideUrlLoading(WebView, IWebResourceRequest)
ShouldOverrideUrlLoading(WebView, String)
Obsolete.

Give the host application a chance to take over the control when a new url is about to be loaded in the current WebView.

ShouldOverrideUrlLoading(WebView, IWebResourceRequest)

[Android.Runtime.Register("shouldOverrideUrlLoading", "(Landroid/webkit/WebView;Landroid/webkit/WebResourceRequest;)Z", "GetShouldOverrideUrlLoading_Landroid_webkit_WebView_Landroid_webkit_WebResourceRequest_Handler", ApiSince=24)]
public virtual bool ShouldOverrideUrlLoading (Android.Webkit.WebView view, Android.Webkit.IWebResourceRequest request);
abstract member ShouldOverrideUrlLoading : Android.Webkit.WebView * Android.Webkit.IWebResourceRequest -> bool
override this.ShouldOverrideUrlLoading : Android.Webkit.WebView * Android.Webkit.IWebResourceRequest -> bool

Parameters

view
WebView

Returns

Boolean
Attributes

Remarks

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

ShouldOverrideUrlLoading(WebView, String)

Caution

deprecated

Give the host application a chance to take over the control when a new url is about to be loaded in the current WebView.

[Android.Runtime.Register("shouldOverrideUrlLoading", "(Landroid/webkit/WebView;Ljava/lang/String;)Z", "GetShouldOverrideUrlLoading_Landroid_webkit_WebView_Ljava_lang_String_Handler")]
[System.Obsolete("deprecated")]
public virtual bool ShouldOverrideUrlLoading (Android.Webkit.WebView view, string url);
abstract member ShouldOverrideUrlLoading : Android.Webkit.WebView * string -> bool
override this.ShouldOverrideUrlLoading : Android.Webkit.WebView * string -> bool

Parameters

view
WebView

The WebView that is initiating the callback.

url
String

The url to be loaded.

Returns

Boolean
Attributes

Remarks

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