WebViewClientCompat
public
class
WebViewClientCompat
extends WebViewClient
| java.lang.Object | ||
| ↳ | android.webkit.WebViewClient | |
| ↳ | androidx.webkit.WebViewClientCompat | |
Compatibility version of WebViewClient.
Summary
Inherited constants |
|---|
Public constructors | |
|---|---|
WebViewClientCompat()
|
|
Public methods | |
|---|---|
void
|
onPageCommitVisible(WebView view, String url)
Notify the host application that |
void
|
onReceivedError(WebView view, WebResourceRequest request, WebResourceErrorCompat error)
Report web resource loading error to the host application. |
final
void
|
onReceivedError(WebView view, WebResourceRequest request, WebResourceError error)
Applications are not meant to override this, and should instead override the non-final |
void
|
onReceivedHttpError(WebView view, WebResourceRequest request, WebResourceResponse errorResponse)
Notify the host application that an HTTP error has been received from the server while loading a resource. |
final
void
|
onSafeBrowsingHit(WebView view, WebResourceRequest request, int threatType, SafeBrowsingResponse response)
Applications are not meant to override this, and should instead override the non-final |
void
|
onSafeBrowsingHit(WebView view, WebResourceRequest request, int threatType, SafeBrowsingResponseCompat callback)
Notify the host application that a loading URL has been flagged by Safe Browsing. |
boolean
|
shouldOverrideUrlLoading(WebView view, WebResourceRequest request)
Give the host application a chance to take over the control when a new url is about to be loaded in the current WebView. |
Inherited methods | |
|---|---|