public interface CordovaWebViewEngine
Modifier and Type | Interface and Description |
---|---|
static interface |
CordovaWebViewEngine.Client
Contains methods that an engine uses to communicate with the parent CordovaWebView.
|
static interface |
CordovaWebViewEngine.EngineView
Used to retrieve the associated CordovaWebView given a View without knowing the type of Engine.
|
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()
Returns whether a navigation occurred
|
void |
init(CordovaWebView parentWebView,
CordovaInterface cordova,
CordovaWebViewEngine.Client client,
CordovaResourceApi resourceApi,
PluginManager pluginManager,
NativeToJsMessageQueue nativeToJsMessageQueue) |
void |
loadUrl(java.lang.String url,
boolean clearNavigationStack) |
void |
setPaused(boolean value)
Pauses / resumes the WebView's event loop.
|
void |
stopLoading() |
void init(CordovaWebView parentWebView, CordovaInterface cordova, CordovaWebViewEngine.Client client, CordovaResourceApi resourceApi, PluginManager pluginManager, NativeToJsMessageQueue nativeToJsMessageQueue)
CordovaWebView getCordovaWebView()
ICordovaCookieManager getCookieManager()
android.view.View getView()
void loadUrl(java.lang.String url, boolean clearNavigationStack)
void stopLoading()
java.lang.String getUrl()
void clearCache()
void clearHistory()
boolean canGoBack()
boolean goBack()
void setPaused(boolean value)
void destroy()
void evaluateJavascript(java.lang.String js, android.webkit.ValueCallback<java.lang.String> callback)