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 CordovaWebViewEngine
public CordovaWebView getCordovaWebView()
getCordovaWebView
in interface CordovaWebViewEngine
public ICordovaCookieManager getCookieManager()
getCookieManager
in interface CordovaWebViewEngine
public android.view.View getView()
getView
in interface CordovaWebViewEngine
public void loadUrl(java.lang.String url, boolean clearNavigationStack)
loadUrl
in interface CordovaWebViewEngine
public java.lang.String getUrl()
CordovaWebViewEngine
getUrl
in interface CordovaWebViewEngine
public void stopLoading()
stopLoading
in interface CordovaWebViewEngine
public void clearCache()
clearCache
in interface CordovaWebViewEngine
public void clearHistory()
CordovaWebViewEngine
clearHistory
in interface CordovaWebViewEngine
public boolean canGoBack()
canGoBack
in interface CordovaWebViewEngine
public boolean goBack()
goBack
in interface CordovaWebViewEngine
public void setPaused(boolean value)
CordovaWebViewEngine
setPaused
in interface CordovaWebViewEngine
public void destroy()
CordovaWebViewEngine
destroy
in interface CordovaWebViewEngine
public void evaluateJavascript(java.lang.String js, android.webkit.ValueCallback<java.lang.String> callback)
CordovaWebViewEngine
evaluateJavascript
in interface CordovaWebViewEngine