WebViewClient.ShouldInterceptRequest WebViewClient.ShouldInterceptRequest Method

Definition

Overloads

ShouldInterceptRequest(WebView, IWebResourceRequest) ShouldInterceptRequest(WebView, IWebResourceRequest)

Notify the host application of a resource request and allow the application to return the data.

ShouldInterceptRequest(WebView, String) ShouldInterceptRequest(WebView, String)

Notify the host application of a resource request and allow the application to return the data.

ShouldInterceptRequest(WebView, IWebResourceRequest) ShouldInterceptRequest(WebView, IWebResourceRequest)

Notify the host application of a resource request and allow the application to return the data.

[Android.Runtime.Register("shouldInterceptRequest", "(Landroid/webkit/WebView;Landroid/webkit/WebResourceRequest;)Landroid/webkit/WebResourceResponse;", "GetShouldInterceptRequest_Landroid_webkit_WebView_Landroid_webkit_WebResourceRequest_Handler", ApiSince=21)]
public virtual Android.Webkit.WebResourceResponse ShouldInterceptRequest (Android.Webkit.WebView view, Android.Webkit.IWebResourceRequest request);
abstract member ShouldInterceptRequest : Android.Webkit.WebView * Android.Webkit.IWebResourceRequest -> Android.Webkit.WebResourceResponse
override this.ShouldInterceptRequest : Android.Webkit.WebView * Android.Webkit.IWebResourceRequest -> Android.Webkit.WebResourceResponse

Parameters

view
WebView WebView

The WebView that is requesting the resource.

request
IWebResourceRequest IWebResourceRequest

Object containing the details of the request.

Returns

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.

ShouldInterceptRequest(WebView, String) ShouldInterceptRequest(WebView, String)

Warning

This API is now obsolete.

Notify the host application of a resource request and allow the application to return the data.

[System.Obsolete("deprecated")]
[Android.Runtime.Register("shouldInterceptRequest", "(Landroid/webkit/WebView;Ljava/lang/String;)Landroid/webkit/WebResourceResponse;", "GetShouldInterceptRequest_Landroid_webkit_WebView_Ljava_lang_String_Handler", ApiSince=11)]
public virtual Android.Webkit.WebResourceResponse ShouldInterceptRequest (Android.Webkit.WebView view, string url);
abstract member ShouldInterceptRequest : Android.Webkit.WebView * string -> Android.Webkit.WebResourceResponse
override this.ShouldInterceptRequest : Android.Webkit.WebView * string -> Android.Webkit.WebResourceResponse

Parameters

view
WebView WebView

The WebView that is requesting the resource.

url
String String

The raw url of the resource.

Returns

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