public class HybridWebViewClient extends WebViewClient
ERROR_AUTHENTICATION, ERROR_BAD_URL, ERROR_CONNECT, ERROR_FAILED_SSL_HANDSHAKE, ERROR_FILE, ERROR_FILE_NOT_FOUND, ERROR_HOST_LOOKUP, ERROR_IO, ERROR_PROXY_AUTHENTICATION, ERROR_REDIRECT_LOOP, ERROR_TIMEOUT, ERROR_TOO_MANY_REQUESTS, ERROR_UNKNOWN, ERROR_UNSUPPORTED_AUTH_SCHEME, ERROR_UNSUPPORTED_SCHEME
Constructor and Description |
---|
HybridWebViewClient() |
Modifier and Type | Method and Description |
---|---|
void |
onPageFinished(WebView view,
String url) |
void |
onPageStarted(WebView webView,
String url,
Bitmap favicon) |
void |
onReceivedError(WebView webView,
int errorCode,
String description,
String failingUrl) |
void |
onReceivedLoginRequest(WebView view,
String realm,
String account,
String args) |
void |
registerRequestInterceptor(Interceptor interceptor) |
void |
setDelegate(HybridWebViewClientDelegate delegate) |
void |
setLoadGuard(WebViewLoadGuard loadGuard) |
WebResourceResponse |
shouldInterceptRequest(WebView webView,
String url) |
WebResourceResponse |
shouldInterceptRequest(WebView webView,
WebResourceRequest request) |
boolean |
shouldOverrideUrlLoading(WebView webView,
String url) |
doUpdateVisitedHistory, onFormResubmission, onLoadResource, onPageCommitVisible, onReceivedClientCertRequest, onReceivedError, onReceivedHttpAuthRequest, onReceivedHttpError, onReceivedSslError, onScaleChanged, onTooManyRedirects, onUnhandledInputEvent, onUnhandledKeyEvent, shouldOverrideKeyEvent
public WebResourceResponse shouldInterceptRequest(WebView webView, WebResourceRequest request)
shouldInterceptRequest
in class WebViewClient
public WebResourceResponse shouldInterceptRequest(WebView webView, String url)
shouldInterceptRequest
in class WebViewClient
public void onPageStarted(WebView webView, String url, Bitmap favicon)
onPageStarted
in class WebViewClient
public void onPageFinished(WebView view, String url)
onPageFinished
in class WebViewClient
public boolean shouldOverrideUrlLoading(WebView webView, String url)
shouldOverrideUrlLoading
in class WebViewClient
public void onReceivedLoginRequest(WebView view, String realm, String account, String args)
onReceivedLoginRequest
in class WebViewClient
public void onReceivedError(WebView webView, int errorCode, String description, String failingUrl)
onReceivedError
in class WebViewClient
public void setDelegate(HybridWebViewClientDelegate delegate)
public void registerRequestInterceptor(Interceptor interceptor)
public void setLoadGuard(WebViewLoadGuard loadGuard)