shouldInterceptRequest
open fun shouldInterceptRequest(@NonNull webView: WebView, @NonNull url: String): WebResourceResponse
Intercepts the favicon request and returns a blank favicon
Return
The blank favicon image embedded in a WebResourceResponse or null if the url does not contain a favicon.
Parameters
webView
The web view.
url
The url being loaded.
open fun shouldInterceptRequest(@NonNull webView: WebView, @NonNull request: WebResourceRequest): WebResourceResponse
Intercepts the favicon request and returns blank favicon
Return
The blank favicon image embedded in a WebResourceResponse or null if the url does not contain a favicon.
Parameters
webView
The web view.
request
The WebResourceRequest being loaded.