@Implements(value=android.webkit.WebView.class) public class ShadowWebView extends ShadowViewGroup
Modifier and Type | Class and Description |
---|---|
static class |
ShadowWebView.LoadData |
static class |
ShadowWebView.LoadDataWithBaseURL |
ShadowView.WindowIdHelper
realViewGroup
attributeSet, realView, scrollToCoordinates
Constructor and Description |
---|
ShadowWebView() |
Modifier and Type | Method and Description |
---|---|
protected void |
addJavascriptInterface(java.lang.Object obj,
java.lang.String interfaceName) |
protected boolean |
canGoBack() |
protected void |
clearCache(boolean includeDiskFiles) |
protected void |
clearFormData() |
protected void |
clearHistory() |
protected void |
clearView() |
protected android.webkit.WebBackForwardList |
copyBackForwardList() |
protected void |
destroy() |
boolean |
didClearCacheIncludeDiskFiles() |
void |
ensureProviderCreated() |
protected void |
evaluateJavascript(java.lang.String script,
android.webkit.ValueCallback<java.lang.String> callback) |
protected static java.lang.String |
findAddress(java.lang.String addr) |
protected static android.content.pm.PackageInfo |
getCurrentWebviewPackage()
Overrides the system implementation for getting the webview package.
|
int |
getGoBackInvocations() |
java.lang.Object |
getJavascriptInterface(java.lang.String interfaceName) |
java.util.Map<java.lang.String,java.lang.String> |
getLastAdditionalHttpHeaders() |
java.lang.String |
getLastEvaluatedJavascript() |
ShadowWebView.LoadData |
getLastLoadData() |
ShadowWebView.LoadDataWithBaseURL |
getLastLoadDataWithBaseURL() |
java.lang.String |
getLastLoadedUrl() |
protected java.lang.String |
getOriginalUrl() |
protected android.webkit.WebSettings |
getSettings() |
protected java.lang.String |
getUrl() |
android.webkit.WebChromeClient |
getWebChromeClient() |
android.webkit.WebViewClient |
getWebViewClient() |
protected void |
goBack() |
protected void |
loadData(java.lang.String data,
java.lang.String mimeType,
java.lang.String encoding) |
protected void |
loadDataWithBaseURL(java.lang.String baseUrl,
java.lang.String data,
java.lang.String mimeType,
java.lang.String encoding,
java.lang.String historyUrl) |
protected void |
loadUrl(java.lang.String url) |
protected void |
loadUrl(java.lang.String url,
java.util.Map<java.lang.String,java.lang.String> additionalHttpHeaders) |
protected void |
onPause() |
protected void |
onResume() |
protected android.webkit.WebBackForwardList |
restoreState(android.os.Bundle inState) |
protected android.webkit.WebBackForwardList |
saveState(android.os.Bundle outState) |
void |
setCanGoBack(boolean canGoBack)
Deprecated.
Do not depend on this method as it will be removed in a future update. The preferered method is to populate a fake web history to use for going back.
|
protected void |
setLayoutParams(android.view.ViewGroup.LayoutParams params) |
protected void |
setWebChromeClient(android.webkit.WebChromeClient client) |
static void |
setWebContentsDebuggingEnabled(boolean enabled) |
protected void |
setWebViewClient(android.webkit.WebViewClient client) |
boolean |
wasClearCacheCalled() |
boolean |
wasClearFormDataCalled() |
boolean |
wasClearHistoryCalled() |
boolean |
wasClearViewCalled() |
boolean |
wasDestroyCalled() |
boolean |
wasOnPauseCalled() |
boolean |
wasOnResumeCalled() |
addView, dump, getDisallowInterceptTouchEvent, getInterceptedTouchEvent, innerText, onInterceptTouchEvent, removedChild, requestDisallowInterceptTouchEvent
__constructor__, callOnAttachedToWindow, callOnDetachedFromWindow, checkedPerformClick, clearWasInvalidated, clickOn, didRequestLayout, draw, dump, dump, dumpAttribute, dumpAttributes, dumpFirstPart, dumpIndent, getDrawingCache, getGlobalVisibleRect, getLastTouchEvent, getLayerType, getOnClickListener, getOnCreateContextMenuListener, getOnLongClickListener, getOnSystemUiVisibilityChangeListener, getOnTouchListener, getScrollX, getScrollY, getWindowId, innerText, invalidate, isAttachedToWindow, lastHapticFeedbackPerformed, onLayout, onLayoutWasCalled, onTouchEvent, performHapticFeedback, post, postDelayed, postInvalidateDelayed, removeCallbacks, requestLayout, scrollBy, scrollTo, setAnimation, setDidRequestLayout, setGlobalVisibleRect, setLayerType, setMyParent, setOnClickListener, setOnCreateContextMenuListener, setOnFocusChangeListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setScrollX, setScrollY, setViewFocus, visualize, wasInvalidated
@HiddenApi @Implementation public void ensureProviderCreated()
@Implementation protected void setLayoutParams(android.view.ViewGroup.LayoutParams params)
@Implementation protected void loadUrl(java.lang.String url)
@Implementation protected void loadUrl(java.lang.String url, java.util.Map<java.lang.String,java.lang.String> additionalHttpHeaders)
@Implementation protected void loadDataWithBaseURL(java.lang.String baseUrl, java.lang.String data, java.lang.String mimeType, java.lang.String encoding, java.lang.String historyUrl)
@Implementation protected void loadData(java.lang.String data, java.lang.String mimeType, java.lang.String encoding)
public java.lang.String getLastLoadedUrl()
@Implementation protected java.lang.String getOriginalUrl()
@Implementation protected java.lang.String getUrl()
public java.util.Map<java.lang.String,java.lang.String> getLastAdditionalHttpHeaders()
@Implementation protected android.webkit.WebSettings getSettings()
@Implementation protected void setWebViewClient(android.webkit.WebViewClient client)
@Implementation protected void setWebChromeClient(android.webkit.WebChromeClient client)
public android.webkit.WebViewClient getWebViewClient()
@Implementation protected void addJavascriptInterface(java.lang.Object obj, java.lang.String interfaceName)
public java.lang.Object getJavascriptInterface(java.lang.String interfaceName)
@Implementation protected void clearCache(boolean includeDiskFiles)
public boolean wasClearCacheCalled()
public boolean didClearCacheIncludeDiskFiles()
@Implementation protected void clearFormData()
public boolean wasClearFormDataCalled()
@Implementation protected void clearHistory()
public boolean wasClearHistoryCalled()
@Implementation protected void clearView()
public boolean wasClearViewCalled()
@Implementation protected void onPause()
public boolean wasOnPauseCalled()
@Implementation protected void onResume()
public boolean wasOnResumeCalled()
@Implementation protected void destroy()
public boolean wasDestroyCalled()
public android.webkit.WebChromeClient getWebChromeClient()
@Implementation protected boolean canGoBack()
@Implementation protected void goBack()
@Implementation protected android.webkit.WebBackForwardList copyBackForwardList()
@Implementation protected static java.lang.String findAddress(java.lang.String addr)
@Implementation(minSdk=26, maxSdk=25) protected static android.content.pm.PackageInfo getCurrentWebviewPackage()
Overrides the system implementation for getting the webview package. Always returns null.
@Implementation(minSdk=19) protected void evaluateJavascript(java.lang.String script, android.webkit.ValueCallback<java.lang.String> callback)
public java.lang.String getLastEvaluatedJavascript()
@Deprecated public void setCanGoBack(boolean canGoBack)
Sets the value to return from android.webkit.WebView#canGoBack()
canGoBack
- Value to return from android.webkit.WebView#canGoBack()
public int getGoBackInvocations()
android.webkit.WebView#goBack()
was invokedpublic ShadowWebView.LoadData getLastLoadData()
public ShadowWebView.LoadDataWithBaseURL getLastLoadDataWithBaseURL()
@Implementation protected android.webkit.WebBackForwardList saveState(android.os.Bundle outState)
@Implementation protected android.webkit.WebBackForwardList restoreState(android.os.Bundle inState)
public static void setWebContentsDebuggingEnabled(boolean enabled)