ServiceWorkerClient.ShouldInterceptRequest(IWebResourceRequest) Method

Definition

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

[Android.Runtime.Register("shouldInterceptRequest", "(Landroid/webkit/WebResourceRequest;)Landroid/webkit/WebResourceResponse;", "GetShouldInterceptRequest_Landroid_webkit_WebResourceRequest_Handler", ApiSince=24)]
public virtual Android.Webkit.WebResourceResponse? ShouldInterceptRequest (Android.Webkit.IWebResourceRequest? request);
[<Android.Runtime.Register("shouldInterceptRequest", "(Landroid/webkit/WebResourceRequest;)Landroid/webkit/WebResourceResponse;", "GetShouldInterceptRequest_Landroid_webkit_WebResourceRequest_Handler", ApiSince=24)>]
abstract member ShouldInterceptRequest : Android.Webkit.IWebResourceRequest -> Android.Webkit.WebResourceResponse
override this.ShouldInterceptRequest : Android.Webkit.IWebResourceRequest -> Android.Webkit.WebResourceResponse

Parameters

request
IWebResourceRequest

Object containing the details of the request.

Returns

WebResourceResponse

A android.webkit.WebResourceResponse containing the response information or null if the WebView should load the resource itself.

Attributes

Remarks

Java documentation for android.webkit.ServiceWorkerClient.shouldInterceptRequest(android.webkit.WebResourceRequest).

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