shouldInterceptRequest

public abstract boolean shouldInterceptRequest(WebView view, String url)

Intercepts a WebView resource request.

The WebView checks this method first; if it returns true the network request is skipped. Returning false lets the WebView load the resource normally.

Note: This callback runs on a WebView worker thread.

Return

true to intercept the request; false to allow it

Parameters

view

WebView making the request

url

resource URL