public class CordovaWebViewImpl extends java.lang.Object implements CordovaWebView
| Modifier and Type | Class and Description |
|---|---|
protected class |
CordovaWebViewImpl.EngineClient |
| Modifier and Type | Field and Description |
|---|---|
protected CordovaWebViewEngine |
engine |
static java.lang.String |
TAG |
CORDOVA_VERSION| Constructor and Description |
|---|
CordovaWebViewImpl(CordovaWebViewEngine cordovaWebViewEngine) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
backHistory() |
boolean |
canGoBack() |
void |
clearCache() |
void |
clearCache(boolean b)
Deprecated.
|
void |
clearHistory() |
static CordovaWebViewEngine |
createEngine(android.content.Context context,
CordovaPreferences preferences) |
android.content.Context |
getContext() |
ICordovaCookieManager |
getCookieManager() |
CordovaWebViewEngine |
getEngine() |
PluginManager |
getPluginManager() |
CordovaPreferences |
getPreferences() |
CordovaResourceApi |
getResourceApi() |
java.lang.String |
getUrl() |
android.view.View |
getView() |
void |
handleDestroy() |
void |
handlePause(boolean keepRunning) |
void |
handleResume(boolean keepRunning) |
void |
handleStart() |
void |
handleStop() |
void |
hideCustomView()
Deprecated.
|
void |
init(CordovaInterface cordova) |
void |
init(CordovaInterface cordova,
java.util.List<PluginEntry> pluginEntries,
CordovaPreferences preferences) |
boolean |
isButtonPlumbedToJs(int keyCode) |
boolean |
isCustomViewShowing()
Deprecated.
|
boolean |
isInitialized() |
void |
loadUrl(java.lang.String url) |
void |
loadUrlIntoView(java.lang.String url,
boolean recreatePlugins) |
void |
onNewIntent(android.content.Intent intent) |
java.lang.Object |
postMessage(java.lang.String id,
java.lang.Object data) |
void |
sendJavascript(java.lang.String statement)
Deprecated.
|
void |
sendPluginResult(PluginResult cr,
java.lang.String callbackId) |
void |
setButtonPlumbedToJs(int keyCode,
boolean override) |
void |
showCustomView(android.view.View view,
android.webkit.WebChromeClient.CustomViewCallback callback)
Deprecated.
|
void |
showWebPage(java.lang.String url,
boolean openExternal,
boolean clearHistory,
java.util.Map<java.lang.String,java.lang.Object> params)
Load the specified URL in the Cordova webview or a new browser instance.
|
void |
stopLoading() |
public static final java.lang.String TAG
protected final CordovaWebViewEngine engine
public CordovaWebViewImpl(CordovaWebViewEngine cordovaWebViewEngine)
public static CordovaWebViewEngine createEngine(android.content.Context context, CordovaPreferences preferences)
public void init(CordovaInterface cordova)
public void init(CordovaInterface cordova, java.util.List<PluginEntry> pluginEntries, CordovaPreferences preferences)
init in interface CordovaWebViewpublic boolean isInitialized()
isInitialized in interface CordovaWebViewpublic void loadUrlIntoView(java.lang.String url,
boolean recreatePlugins)
loadUrlIntoView in interface CordovaWebViewpublic void loadUrl(java.lang.String url)
loadUrl in interface CordovaWebViewpublic void showWebPage(java.lang.String url,
boolean openExternal,
boolean clearHistory,
java.util.Map<java.lang.String,java.lang.Object> params)
CordovaWebViewshowWebPage in interface CordovaWebViewurl - The url to load.openExternal - Load url in browser instead of Cordova webview.clearHistory - Clear the history stack, so new page becomes top of historyparams - Parameters for new app@Deprecated
public void showCustomView(android.view.View view,
android.webkit.WebChromeClient.CustomViewCallback callback)
CordovaWebViewshowCustomView in interface CordovaWebView@Deprecated public void hideCustomView()
CordovaWebViewhideCustomView in interface CordovaWebView@Deprecated public boolean isCustomViewShowing()
CordovaWebViewisCustomViewShowing in interface CordovaWebView@Deprecated public void sendJavascript(java.lang.String statement)
CordovaWebViewsendJavascript in interface CordovaWebViewpublic void sendPluginResult(PluginResult cr, java.lang.String callbackId)
sendPluginResult in interface CordovaWebViewpublic PluginManager getPluginManager()
getPluginManager in interface CordovaWebViewpublic CordovaPreferences getPreferences()
getPreferences in interface CordovaWebViewpublic ICordovaCookieManager getCookieManager()
getCookieManager in interface CordovaWebViewpublic CordovaResourceApi getResourceApi()
getResourceApi in interface CordovaWebViewpublic CordovaWebViewEngine getEngine()
getEngine in interface CordovaWebViewpublic android.view.View getView()
getView in interface CordovaWebViewpublic android.content.Context getContext()
getContext in interface CordovaWebViewpublic void setButtonPlumbedToJs(int keyCode,
boolean override)
setButtonPlumbedToJs in interface CordovaWebViewpublic boolean isButtonPlumbedToJs(int keyCode)
isButtonPlumbedToJs in interface CordovaWebViewpublic java.lang.Object postMessage(java.lang.String id,
java.lang.Object data)
postMessage in interface CordovaWebViewpublic java.lang.String getUrl()
getUrl in interface CordovaWebViewpublic void stopLoading()
stopLoading in interface CordovaWebViewpublic boolean canGoBack()
canGoBack in interface CordovaWebViewpublic void clearCache()
clearCache in interface CordovaWebView@Deprecated public void clearCache(boolean b)
CordovaWebViewclearCache in interface CordovaWebViewpublic void clearHistory()
clearHistory in interface CordovaWebViewpublic boolean backHistory()
backHistory in interface CordovaWebViewpublic void onNewIntent(android.content.Intent intent)
onNewIntent in interface CordovaWebViewpublic void handlePause(boolean keepRunning)
handlePause in interface CordovaWebViewpublic void handleResume(boolean keepRunning)
handleResume in interface CordovaWebViewpublic void handleStart()
handleStart in interface CordovaWebViewpublic void handleStop()
handleStop in interface CordovaWebViewpublic void handleDestroy()
handleDestroy in interface CordovaWebView