public class CBWebChromeClient
extends WebChromeClient
| Modifier and Type | Class and Description |
|---|---|
static interface |
CBWebChromeClient.ToggledFullscreenCallback |
| Constructor and Description |
|---|
CBWebChromeClient(View activityNonVideoView,
ViewGroup activityVideoView,
CBWebViewProtocol protocol,
Handler uiHandler) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isVideoFullscreen()
Indicates if the video is being displayed using a custom view (typically full-screen)
|
java.lang.String |
nativeFunctionWithArgs(JSONObject args,
java.lang.String functionName) |
void |
notifyCorsError(JSONObject data) |
boolean |
onBackPressed()
Notifies the class that the back key has been pressed by the user.
|
boolean |
onConsoleMessage(ConsoleMessage cm) |
void |
onHideCustomView() |
boolean |
onJsPrompt(WebView view,
java.lang.String url,
java.lang.String message,
java.lang.String defaultValue,
JsPromptResult result)
Tell the client to display a prompt dialog to the user.
|
void |
onShowCustomView(View view,
CustomViewCallback callback) |
void |
onShowCustomView(View view,
int requestedOrientation,
CustomViewCallback callback) |
void |
setOnToggledFullscreen(CBWebChromeClient.ToggledFullscreenCallback callback)
Set a callback that will be fired when the video starts or finishes displaying using a custom view (typically full-screen)
|
public CBWebChromeClient(View activityNonVideoView,
ViewGroup activityVideoView,
CBWebViewProtocol protocol,
Handler uiHandler)
public boolean isVideoFullscreen()
public void setOnToggledFullscreen(CBWebChromeClient.ToggledFullscreenCallback callback)
callback - A CBVideoEnabledWebChromeClient.ToggledFullscreenCallback callbackpublic boolean onConsoleMessage(ConsoleMessage cm)
public boolean onJsPrompt(WebView view,
java.lang.String url,
java.lang.String message,
java.lang.String defaultValue,
JsPromptResult result)
public java.lang.String nativeFunctionWithArgs(JSONObject args,
java.lang.String functionName)
public void onShowCustomView(View view,
CustomViewCallback callback)
public void onShowCustomView(View view,
int requestedOrientation,
CustomViewCallback callback)
public void onHideCustomView()
public void notifyCorsError(JSONObject data)
public boolean onBackPressed()