Android.Webkit.WebViewClient.ShouldInterceptRequest Method
Notify the host application of a resource request and allow the application to return the data.

Syntax

[Android.Runtime.Register("shouldInterceptRequest", "(Landroid/webkit/WebView;Landroid/webkit/WebResourceRequest;)Landroid/webkit/WebResourceResponse;", "GetShouldInterceptRequest_Landroid_webkit_WebView_Landroid_webkit_WebResourceRequest_Handler")]
public virtual WebResourceResponse ShouldInterceptRequest (WebView view, IWebResourceRequest request)

Parameters

view
The Android.Webkit.WebView that is requesting the resource.
request
Object containing the details of the request.

Returns

Documentation for this section has not yet been entered.

Remarks

Notify the host application of a resource request and allow the application to return the data. If the return value is null, the WebView will continue to load the resource as usual. Otherwise, the return response and data will be used. NOTE: This method is called on a thread other than the UI thread so clients should exercise caution when accessing private data or the view system.

[Android Documentation]

Requirements

Namespace: Android.Webkit
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0