public class HybridWebChromeClient extends WebChromeClient
WebChromeClient.CustomViewCallback, WebChromeClient.FileChooserParams
Constructor and Description |
---|
HybridWebChromeClient(JsConsole console,
WebViewLoadGuard loadGuard,
PopupManager popupManager,
PermissionRequestor permissionRequestor) |
Modifier and Type | Method and Description |
---|---|
boolean |
onConsoleMessage(ConsoleMessage cm) |
void |
onGeolocationPermissionsShowPrompt(String origin,
GeolocationPermissions.Callback callback) |
boolean |
onJsAlert(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) |
void |
onProgressChanged(WebView webView,
int newProgress) |
void |
onReachedMaxAppCacheSize(long spaceNeeded,
long totalUsedQuota,
WebStorage.QuotaUpdater quotaUpdater)
TODO remove when min SDK is 19
|
getDefaultVideoPoster, getVideoLoadingProgressView, getVisitedHistory, onCloseWindow, onConsoleMessage, onCreateWindow, onExceededDatabaseQuota, onGeolocationPermissionsHidePrompt, onHideCustomView, onJsBeforeUnload, onJsTimeout, onPermissionRequest, onPermissionRequestCanceled, onReceivedIcon, onReceivedTitle, onReceivedTouchIconUrl, onRequestFocus, onShowCustomView, onShowCustomView, onShowFileChooser
public HybridWebChromeClient(JsConsole console, WebViewLoadGuard loadGuard, PopupManager popupManager, PermissionRequestor permissionRequestor)
public boolean onJsAlert(WebView view, String url, String message, JsResult result)
onJsAlert
in class WebChromeClient
public boolean onJsConfirm(WebView view, String url, String message, JsResult result)
onJsConfirm
in class WebChromeClient
public boolean onJsPrompt(WebView view, String url, String message, String defaultValue, JsPromptResult result)
onJsPrompt
in class WebChromeClient
public boolean onConsoleMessage(ConsoleMessage cm)
onConsoleMessage
in class WebChromeClient
public void onGeolocationPermissionsShowPrompt(String origin, GeolocationPermissions.Callback callback)
onGeolocationPermissionsShowPrompt
in class WebChromeClient
public void onProgressChanged(WebView webView, int newProgress)
onProgressChanged
in class WebChromeClient
public void onReachedMaxAppCacheSize(long spaceNeeded, long totalUsedQuota, WebStorage.QuotaUpdater quotaUpdater)
onReachedMaxAppCacheSize
in class WebChromeClient