android.webkit
Class WebChromeClient

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

public class WebChromeClient
extends Object


Nested Class Summary
static interface WebChromeClient.CustomViewCallback
           
 
Constructor Summary
WebChromeClient()
           
 
Method Summary
 Bitmap getDefaultVideoPoster()
           
 View getVideoLoadingProgressView()
           
 void getVisitedHistory(ValueCallback<String[]> callback)
           
 void onCloseWindow(WebView window)
           
 boolean onConsoleMessage(ConsoleMessage consoleMessage)
           
 void onConsoleMessage(String message, int lineNumber, String sourceID)
           
 boolean onCreateWindow(WebView view, boolean dialog, boolean userGesture, Message resultMsg)
           
 void onExceededDatabaseQuota(String url, String databaseIdentifier, long currentQuota, long estimatedSize, long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
           
 void onGeolocationPermissionsHidePrompt()
           
 void onGeolocationPermissionsShowPrompt(String origin, GeolocationPermissions.Callback callback)
           
 void onHideCustomView()
           
 boolean onJsAlert(WebView view, String url, String message, JsResult result)
           
 boolean onJsBeforeUnload(WebView view, String url, String message, JsResult result)
           
 boolean onJsConfirm(WebView view, String url, String message, JsResult result)
           
 boolean onJsPrompt(WebView view, String url, String message, String defaultValue, JsPromptResult result)
           
 boolean onJsTimeout()
           
 void onProgressChanged(WebView view, int newProgress)
           
 void onReachedMaxAppCacheSize(long spaceNeeded, long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
           
 void onReceivedIcon(WebView view, Bitmap icon)
           
 void onReceivedTitle(WebView view, String title)
           
 void onReceivedTouchIconUrl(WebView view, String url, boolean precomposed)
           
 void onRequestFocus(WebView view)
           
 void onShowCustomView(View view, int requestedOrientation, WebChromeClient.CustomViewCallback callback)
           
 void onShowCustomView(View view, WebChromeClient.CustomViewCallback callback)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebChromeClient

public WebChromeClient()
Method Detail

onProgressChanged

public void onProgressChanged(WebView view,
                              int newProgress)

onReceivedTitle

public void onReceivedTitle(WebView view,
                            String title)

onReceivedIcon

public void onReceivedIcon(WebView view,
                           Bitmap icon)

onReceivedTouchIconUrl

public void onReceivedTouchIconUrl(WebView view,
                                   String url,
                                   boolean precomposed)

onShowCustomView

public void onShowCustomView(View view,
                             WebChromeClient.CustomViewCallback callback)

onShowCustomView

public void onShowCustomView(View view,
                             int requestedOrientation,
                             WebChromeClient.CustomViewCallback callback)

onHideCustomView

public void onHideCustomView()

onCreateWindow

public boolean onCreateWindow(WebView view,
                              boolean dialog,
                              boolean userGesture,
                              Message resultMsg)

onRequestFocus

public void onRequestFocus(WebView view)

onCloseWindow

public void onCloseWindow(WebView window)

onJsAlert

public boolean onJsAlert(WebView view,
                         String url,
                         String message,
                         JsResult result)

onJsConfirm

public boolean onJsConfirm(WebView view,
                           String url,
                           String message,
                           JsResult result)

onJsPrompt

public boolean onJsPrompt(WebView view,
                          String url,
                          String message,
                          String defaultValue,
                          JsPromptResult result)

onJsBeforeUnload

public boolean onJsBeforeUnload(WebView view,
                                String url,
                                String message,
                                JsResult result)

onExceededDatabaseQuota

public void onExceededDatabaseQuota(String url,
                                    String databaseIdentifier,
                                    long currentQuota,
                                    long estimatedSize,
                                    long totalUsedQuota,
                                    WebStorage.QuotaUpdater quotaUpdater)

onReachedMaxAppCacheSize

public void onReachedMaxAppCacheSize(long spaceNeeded,
                                     long totalUsedQuota,
                                     WebStorage.QuotaUpdater quotaUpdater)

onGeolocationPermissionsShowPrompt

public void onGeolocationPermissionsShowPrompt(String origin,
                                               GeolocationPermissions.Callback callback)

onGeolocationPermissionsHidePrompt

public void onGeolocationPermissionsHidePrompt()

onJsTimeout

public boolean onJsTimeout()

onConsoleMessage

public void onConsoleMessage(String message,
                             int lineNumber,
                             String sourceID)

onConsoleMessage

public boolean onConsoleMessage(ConsoleMessage consoleMessage)

getDefaultVideoPoster

public Bitmap getDefaultVideoPoster()

getVideoLoadingProgressView

public View getVideoLoadingProgressView()

getVisitedHistory

public void getVisitedHistory(ValueCallback<String[]> callback)


Copyright © 2008-2012. All Rights Reserved.