@Implements(value=android.webkit.WebView.class,
inheritImplementationMethods=true)
public class ShadowWebView
extends ShadowAbsoluteLayout
WebView.| Modifier and Type | Class and Description |
|---|---|
class |
ShadowWebView.LoadData |
class |
ShadowWebView.LoadDataWithBaseURL |
ShadowAbsoluteLayout.ShadowLayoutParamsShadowViewGroup.ShadowMarginLayoutParamsrealViewGroupANDROID_NS, attributeSet, realView, scrollToCoordinates| Constructor and Description |
|---|
ShadowWebView() |
| Modifier and Type | Method and Description |
|---|---|
void |
addJavascriptInterface(Object obj,
String interfaceName) |
boolean |
canGoBack() |
void |
clearCache(boolean includeDiskFiles) |
void |
clearFormData() |
void |
clearHistory() |
void |
clearView() |
void |
destroy() |
boolean |
didClearCacheIncludeDiskFiles() |
void |
ensureProviderCreated() |
static String |
findAddress(String addr) |
int |
getGoBackInvocations()
Non-Android accessor.
|
Object |
getJavascriptInterface(String interfaceName) |
Map<String,String> |
getLastAdditionalHttpHeaders()
Non-Android accessor.
|
ShadowWebView.LoadData |
getLastLoadData() |
ShadowWebView.LoadDataWithBaseURL |
getLastLoadDataWithBaseURL() |
String |
getLastLoadedUrl()
Non-Android accessor.
|
android.webkit.WebView.PictureListener |
getPictureListener() |
boolean |
getRunFlag() |
android.webkit.WebSettings |
getSettings() |
android.webkit.WebChromeClient |
getWebChromeClient()
Non-Android accessor.
|
android.webkit.WebViewClient |
getWebViewClient() |
void |
goBack() |
void |
loadData(String data,
String mimeType,
String encoding) |
void |
loadDataWithBaseURL(String baseUrl,
String data,
String mimeType,
String encoding,
String historyUrl) |
void |
loadUrl(String url) |
void |
loadUrl(String url,
Map<String,String> additionalHttpHeaders) |
void |
onPause() |
void |
onResume() |
void |
post(Runnable action) |
void |
setCanGoBack(boolean canGoBack)
Non-Android setter.
|
void |
setLayoutParams(android.view.ViewGroup.LayoutParams params) |
void |
setPictureListener(android.webkit.WebView.PictureListener listener) |
void |
setWebChromeClient(android.webkit.WebChromeClient client) |
static void |
setWebContentsDebuggingEnabled(boolean enabled) |
void |
setWebViewClient(android.webkit.WebViewClient client) |
boolean |
wasClearCacheCalled() |
boolean |
wasClearFormDataCalled() |
boolean |
wasClearHistoryCalled() |
boolean |
wasClearViewCalled() |
boolean |
wasDestroyCalled() |
boolean |
wasOnPauseCalled() |
boolean |
wasOnResumeCalled() |
addView, dump, getDisallowInterceptTouchEvent, getInterceptedTouchEvent, getLayoutAnimation, getLayoutAnimationListener, innerText, onInterceptTouchEvent, removedChild, requestDisallowInterceptTouchEvent, setLayoutAnimation, setLayoutAnimationListener__constructor__, buildDrawable, callOnAttachedToWindow, callOnDetachedFromWindow, checkedPerformClick, clearWasInvalidated, clickOn, computeOpaqueFlags, didRequestLayout, draw, dump, dump, dumpAttribute, dumpAttributes, dumpFirstPart, dumpIndent, getBackgroundColor, getBackgroundResourceId, getDrawingCache, getLastTouchEvent, getOnClickListener, getOnCreateContextMenuListener, getOnLongClickListener, getOnSystemUiVisibilityChangeListener, getOnTouchListener, getQualifiers, getScaleX, getScaleY, getScrollX, getScrollY, innerText, invalidate, isAttachedToWindow, lastHapticFeedbackPerformed, onLayout, onLayoutWasCalled, onTouchEvent, performHapticFeedback, postDelayed, postInvalidateDelayed, removeCallbacks, requestLayout, scrollTo, setAnimation, setDidRequestLayout, setMyParent, setOnClickListener, setOnCreateContextMenuListener, setOnFocusChangeListener, setOnLongClickListener, setOnSystemUiVisibilityChangeListener, setOnTouchListener, setScaleX, setScaleY, setScrollX, setScrollY, setViewFocus, visualize, wasInvalidated@HiddenApi @Implementation public void ensureProviderCreated()
@Implementation public void setLayoutParams(android.view.ViewGroup.LayoutParams params)
@Implementation public void loadUrl(String url)
@Implementation public void loadDataWithBaseURL(String baseUrl, String data, String mimeType, String encoding, String historyUrl)
public String getLastLoadedUrl()
public Map<String,String> getLastAdditionalHttpHeaders()
@Implementation public android.webkit.WebSettings getSettings()
@Implementation public void setWebViewClient(android.webkit.WebViewClient client)
@Implementation public void setWebChromeClient(android.webkit.WebChromeClient client)
public android.webkit.WebViewClient getWebViewClient()
@Implementation public void setPictureListener(android.webkit.WebView.PictureListener listener)
public android.webkit.WebView.PictureListener getPictureListener()
@Implementation public void addJavascriptInterface(Object obj, String interfaceName)
@Implementation public void clearCache(boolean includeDiskFiles)
public boolean wasClearCacheCalled()
public boolean didClearCacheIncludeDiskFiles()
@Implementation public void clearFormData()
public boolean wasClearFormDataCalled()
@Implementation public void clearHistory()
public boolean wasClearHistoryCalled()
@Implementation public void clearView()
public boolean wasClearViewCalled()
@Implementation public void onPause()
public boolean wasOnPauseCalled()
@Implementation public void onResume()
public boolean wasOnResumeCalled()
@Implementation public void destroy()
public boolean wasDestroyCalled()
@Implementation public void post(Runnable action)
post in class ShadowViewpublic boolean getRunFlag()
public android.webkit.WebChromeClient getWebChromeClient()
@Implementation public boolean canGoBack()
@Implementation public void goBack()
public int getGoBackInvocations()
android.webkit.WebView#goBack()
was invokedpublic void setCanGoBack(boolean canGoBack)
android.webkit.WebView#canGoBack()canGoBack - Value to return from android.webkit.WebView#canGoBack()public ShadowWebView.LoadData getLastLoadData()
public ShadowWebView.LoadDataWithBaseURL getLastLoadDataWithBaseURL()
public static void setWebContentsDebuggingEnabled(boolean enabled)
Copyright © 2015. All rights reserved.