public class ServiceWorkerClient extends Object
ServiceWorkerController
for usage example.Constructor and Description |
---|
ServiceWorkerClient() |
Modifier and Type | Method and Description |
---|---|
WebResourceResponse |
shouldInterceptRequest(WebResourceRequest request)
Notify the host application of a resource request and allow the
application to return the data.
|
public WebResourceResponse shouldInterceptRequest(WebResourceRequest request)
request
- Object containing the details of the request.WebResourceResponse
containing the
response information or null if the WebView should load the
resource itself.WebViewClient.shouldInterceptRequest(WebView, WebResourceRequest)