public class SystemWebViewEngine extends java.lang.Object implements CordovaWebViewEngine
CordovaWebViewEngine.Client, CordovaWebViewEngine.EngineView| Modifier and Type | Field and Description |
|---|---|
protected CordovaBridge |
bridge |
protected CordovaWebViewEngine.Client |
client |
protected org.apache.cordova.engine.SystemCookieManager |
cookieManager |
protected CordovaInterface |
cordova |
protected NativeToJsMessageQueue |
nativeToJsMessageQueue |
protected CordovaWebView |
parentWebView |
protected PluginManager |
pluginManager |
protected CordovaPreferences |
preferences |
protected CordovaResourceApi |
resourceApi |
static java.lang.String |
TAG |
protected SystemWebView |
webView |
| Constructor and Description |
|---|
SystemWebViewEngine(android.content.Context context,
CordovaPreferences preferences)
Used when created via reflection.
|
SystemWebViewEngine(SystemWebView webView) |
SystemWebViewEngine(SystemWebView webView,
CordovaPreferences preferences) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canGoBack() |
void |
clearCache() |
void |
clearHistory()
After calling clearHistory(), canGoBack() should be false.
|
void |
destroy()
Clean up all resources associated with the WebView.
|
void |
evaluateJavascript(java.lang.String js,
android.webkit.ValueCallback<java.lang.String> callback)
Add the evaulate Javascript method
|
ICordovaCookieManager |
getCookieManager() |
CordovaWebView |
getCordovaWebView() |
java.lang.String |
getUrl()
Return the currently loaded URL
|
android.view.View |
getView() |
boolean |
goBack()
Go to previous page in history.
|
void |
init(CordovaWebView parentWebView,
CordovaInterface cordova,
CordovaWebViewEngine.Client client,
CordovaResourceApi resourceApi,
PluginManager pluginManager,
NativeToJsMessageQueue nativeToJsMessageQueue) |
void |
loadUrl(java.lang.String url,
boolean clearNavigationStack)
Load the url into the webview.
|
void |
setPaused(boolean value)
Pauses / resumes the WebView's event loop.
|
void |
stopLoading() |
public static final java.lang.String TAG
protected final SystemWebView webView
protected final org.apache.cordova.engine.SystemCookieManager cookieManager
protected CordovaPreferences preferences
protected CordovaBridge bridge
protected CordovaWebViewEngine.Client client
protected CordovaWebView parentWebView
protected CordovaInterface cordova
protected PluginManager pluginManager
protected CordovaResourceApi resourceApi
protected NativeToJsMessageQueue nativeToJsMessageQueue
public SystemWebViewEngine(android.content.Context context,
CordovaPreferences preferences)
public SystemWebViewEngine(SystemWebView webView)
public SystemWebViewEngine(SystemWebView webView, CordovaPreferences preferences)
public void init(CordovaWebView parentWebView, CordovaInterface cordova, CordovaWebViewEngine.Client client, CordovaResourceApi resourceApi, PluginManager pluginManager, NativeToJsMessageQueue nativeToJsMessageQueue)
init in interface CordovaWebViewEnginepublic CordovaWebView getCordovaWebView()
getCordovaWebView in interface CordovaWebViewEnginepublic ICordovaCookieManager getCookieManager()
getCookieManager in interface CordovaWebViewEnginepublic android.view.View getView()
getView in interface CordovaWebViewEnginepublic void loadUrl(java.lang.String url,
boolean clearNavigationStack)
loadUrl in interface CordovaWebViewEnginepublic java.lang.String getUrl()
CordovaWebViewEnginegetUrl in interface CordovaWebViewEnginepublic void stopLoading()
stopLoading in interface CordovaWebViewEnginepublic void clearCache()
clearCache in interface CordovaWebViewEnginepublic void clearHistory()
CordovaWebViewEngineclearHistory in interface CordovaWebViewEnginepublic boolean canGoBack()
canGoBack in interface CordovaWebViewEnginepublic boolean goBack()
goBack in interface CordovaWebViewEnginepublic void setPaused(boolean value)
CordovaWebViewEnginesetPaused in interface CordovaWebViewEnginepublic void destroy()
CordovaWebViewEnginedestroy in interface CordovaWebViewEnginepublic void evaluateJavascript(java.lang.String js,
android.webkit.ValueCallback<java.lang.String> callback)
CordovaWebViewEngineevaluateJavascript in interface CordovaWebViewEngine