android.webkit
Class WebViewClient

java.lang.Object
  extended by android.webkit.WebViewClient

public class WebViewClient
extends Object


Field Summary
static int ERROR_AUTHENTICATION
           
static int ERROR_BAD_URL
           
static int ERROR_CONNECT
           
static int ERROR_FAILED_SSL_HANDSHAKE
           
static int ERROR_FILE
           
static int ERROR_FILE_NOT_FOUND
           
static int ERROR_HOST_LOOKUP
           
static int ERROR_IO
           
static int ERROR_PROXY_AUTHENTICATION
           
static int ERROR_REDIRECT_LOOP
           
static int ERROR_TIMEOUT
           
static int ERROR_TOO_MANY_REQUESTS
           
static int ERROR_UNKNOWN
           
static int ERROR_UNSUPPORTED_AUTH_SCHEME
           
static int ERROR_UNSUPPORTED_SCHEME
           
 
Constructor Summary
WebViewClient()
           
 
Method Summary
 void doUpdateVisitedHistory(WebView view, String url, boolean isReload)
           
 void onFormResubmission(WebView view, Message dontResend, Message resend)
           
 void onLoadResource(WebView view, String url)
           
 void onPageFinished(WebView view, String url)
           
 void onPageStarted(WebView view, String url, Bitmap favicon)
           
 void onReceivedError(WebView view, int errorCode, String description, String failingUrl)
           
 void onReceivedHttpAuthRequest(WebView view, HttpAuthHandler handler, String host, String realm)
           
 void onReceivedLoginRequest(WebView view, String realm, String account, String args)
           
 void onReceivedSslError(WebView view, SslErrorHandler handler, SslError error)
           
 void onScaleChanged(WebView view, float oldScale, float newScale)
           
 void onTooManyRedirects(WebView view, Message cancelMsg, Message continueMsg)
           
 void onUnhandledKeyEvent(WebView view, KeyEvent event)
           
 WebResourceResponse shouldInterceptRequest(WebView view, String url)
           
 boolean shouldOverrideKeyEvent(WebView view, KeyEvent event)
           
 boolean shouldOverrideUrlLoading(WebView view, String url)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ERROR_UNKNOWN

public static final int ERROR_UNKNOWN
See Also:
Constant Field Values

ERROR_HOST_LOOKUP

public static final int ERROR_HOST_LOOKUP
See Also:
Constant Field Values

ERROR_UNSUPPORTED_AUTH_SCHEME

public static final int ERROR_UNSUPPORTED_AUTH_SCHEME
See Also:
Constant Field Values

ERROR_AUTHENTICATION

public static final int ERROR_AUTHENTICATION
See Also:
Constant Field Values

ERROR_PROXY_AUTHENTICATION

public static final int ERROR_PROXY_AUTHENTICATION
See Also:
Constant Field Values

ERROR_CONNECT

public static final int ERROR_CONNECT
See Also:
Constant Field Values

ERROR_IO

public static final int ERROR_IO
See Also:
Constant Field Values

ERROR_TIMEOUT

public static final int ERROR_TIMEOUT
See Also:
Constant Field Values

ERROR_REDIRECT_LOOP

public static final int ERROR_REDIRECT_LOOP
See Also:
Constant Field Values

ERROR_UNSUPPORTED_SCHEME

public static final int ERROR_UNSUPPORTED_SCHEME
See Also:
Constant Field Values

ERROR_FAILED_SSL_HANDSHAKE

public static final int ERROR_FAILED_SSL_HANDSHAKE
See Also:
Constant Field Values

ERROR_BAD_URL

public static final int ERROR_BAD_URL
See Also:
Constant Field Values

ERROR_FILE

public static final int ERROR_FILE
See Also:
Constant Field Values

ERROR_FILE_NOT_FOUND

public static final int ERROR_FILE_NOT_FOUND
See Also:
Constant Field Values

ERROR_TOO_MANY_REQUESTS

public static final int ERROR_TOO_MANY_REQUESTS
See Also:
Constant Field Values
Constructor Detail

WebViewClient

public WebViewClient()
Method Detail

shouldOverrideUrlLoading

public boolean shouldOverrideUrlLoading(WebView view,
                                        String url)

onPageStarted

public void onPageStarted(WebView view,
                          String url,
                          Bitmap favicon)

onPageFinished

public void onPageFinished(WebView view,
                           String url)

onLoadResource

public void onLoadResource(WebView view,
                           String url)

shouldInterceptRequest

public WebResourceResponse shouldInterceptRequest(WebView view,
                                                  String url)

onTooManyRedirects

public void onTooManyRedirects(WebView view,
                               Message cancelMsg,
                               Message continueMsg)

onReceivedError

public void onReceivedError(WebView view,
                            int errorCode,
                            String description,
                            String failingUrl)

onFormResubmission

public void onFormResubmission(WebView view,
                               Message dontResend,
                               Message resend)

doUpdateVisitedHistory

public void doUpdateVisitedHistory(WebView view,
                                   String url,
                                   boolean isReload)

onReceivedSslError

public void onReceivedSslError(WebView view,
                               SslErrorHandler handler,
                               SslError error)

onReceivedHttpAuthRequest

public void onReceivedHttpAuthRequest(WebView view,
                                      HttpAuthHandler handler,
                                      String host,
                                      String realm)

shouldOverrideKeyEvent

public boolean shouldOverrideKeyEvent(WebView view,
                                      KeyEvent event)

onUnhandledKeyEvent

public void onUnhandledKeyEvent(WebView view,
                                KeyEvent event)

onScaleChanged

public void onScaleChanged(WebView view,
                           float oldScale,
                           float newScale)

onReceivedLoginRequest

public void onReceivedLoginRequest(WebView view,
                                   String realm,
                                   String account,
                                   String args)


Copyright © 2008-2012. All Rights Reserved.