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 CordovaWebView
public boolean isInitialized()
isInitialized
in interface CordovaWebView
public void loadUrlIntoView(java.lang.String url, boolean recreatePlugins)
loadUrlIntoView
in interface CordovaWebView
public void loadUrl(java.lang.String url)
loadUrl
in interface CordovaWebView
public void showWebPage(java.lang.String url, boolean openExternal, boolean clearHistory, java.util.Map<java.lang.String,java.lang.Object> params)
CordovaWebView
showWebPage
in interface CordovaWebView
url
- 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)
CordovaWebView
showCustomView
in interface CordovaWebView
@Deprecated public void hideCustomView()
CordovaWebView
hideCustomView
in interface CordovaWebView
@Deprecated public boolean isCustomViewShowing()
CordovaWebView
isCustomViewShowing
in interface CordovaWebView
@Deprecated public void sendJavascript(java.lang.String statement)
CordovaWebView
sendJavascript
in interface CordovaWebView
public void sendPluginResult(PluginResult cr, java.lang.String callbackId)
sendPluginResult
in interface CordovaWebView
public PluginManager getPluginManager()
getPluginManager
in interface CordovaWebView
public CordovaPreferences getPreferences()
getPreferences
in interface CordovaWebView
public ICordovaCookieManager getCookieManager()
getCookieManager
in interface CordovaWebView
public CordovaResourceApi getResourceApi()
getResourceApi
in interface CordovaWebView
public CordovaWebViewEngine getEngine()
getEngine
in interface CordovaWebView
public android.view.View getView()
getView
in interface CordovaWebView
public android.content.Context getContext()
getContext
in interface CordovaWebView
public void setButtonPlumbedToJs(int keyCode, boolean override)
setButtonPlumbedToJs
in interface CordovaWebView
public boolean isButtonPlumbedToJs(int keyCode)
isButtonPlumbedToJs
in interface CordovaWebView
public java.lang.Object postMessage(java.lang.String id, java.lang.Object data)
postMessage
in interface CordovaWebView
public java.lang.String getUrl()
getUrl
in interface CordovaWebView
public void stopLoading()
stopLoading
in interface CordovaWebView
public boolean canGoBack()
canGoBack
in interface CordovaWebView
public void clearCache()
clearCache
in interface CordovaWebView
@Deprecated public void clearCache(boolean b)
CordovaWebView
clearCache
in interface CordovaWebView
public void clearHistory()
clearHistory
in interface CordovaWebView
public boolean backHistory()
backHistory
in interface CordovaWebView
public void onNewIntent(android.content.Intent intent)
onNewIntent
in interface CordovaWebView
public void handlePause(boolean keepRunning)
handlePause
in interface CordovaWebView
public void handleResume(boolean keepRunning)
handleResume
in interface CordovaWebView
public void handleStart()
handleStart
in interface CordovaWebView
public void handleStop()
handleStop
in interface CordovaWebView
public void handleDestroy()
handleDestroy
in interface CordovaWebView