public class RoboWebSettings
extends android.webkit.WebSettings
Robolectric implementation of WebSettings
.
android.webkit.WebSettings.CacheMode, android.webkit.WebSettings.LayoutAlgorithm, android.webkit.WebSettings.PluginState, android.webkit.WebSettings.RenderPriority, android.webkit.WebSettings.TextSize, android.webkit.WebSettings.ZoomDensity
LOAD_CACHE_ELSE_NETWORK, LOAD_CACHE_ONLY, LOAD_DEFAULT, LOAD_NO_CACHE, LOAD_NORMAL, MENU_ITEM_NONE, MENU_ITEM_PROCESS_TEXT, MENU_ITEM_SHARE, MENU_ITEM_WEB_SEARCH, MIXED_CONTENT_ALWAYS_ALLOW, MIXED_CONTENT_COMPATIBILITY_MODE, MIXED_CONTENT_NEVER_ALLOW
Constructor and Description |
---|
RoboWebSettings() |
Modifier and Type | Method and Description |
---|---|
boolean |
enableSmoothTransition() |
boolean |
getAcceptThirdPartyCookies() |
boolean |
getAllowContentAccess() |
boolean |
getAllowFileAccess() |
boolean |
getAllowFileAccessFromFileURLs() |
boolean |
getAllowUniversalAccessFromFileURLs() |
boolean |
getAppCacheEnabled() |
long |
getAppCacheMaxSize() |
java.lang.String |
getAppCachePath() |
boolean |
getBlockNetworkImage() |
boolean |
getBlockNetworkLoads() |
boolean |
getBuiltInZoomControls() |
int |
getCacheMode() |
java.lang.String |
getCursiveFontFamily() |
boolean |
getDatabaseEnabled() |
java.lang.String |
getDatabasePath() |
int |
getDefaultFixedFontSize() |
int |
getDefaultFontSize() |
java.lang.String |
getDefaultTextEncodingName() |
android.webkit.WebSettings.ZoomDensity |
getDefaultZoom() |
int |
getDisabledActionModeMenuItems() |
boolean |
getDisplayZoomControls() |
boolean |
getDomStorageEnabled() |
java.lang.String |
getFantasyFontFamily() |
java.lang.String |
getFixedFontFamily() |
java.lang.String |
getGeolocationDatabasePath() |
boolean |
getGeolocationEnabled() |
boolean |
getJavaScriptCanOpenWindowsAutomatically() |
boolean |
getJavaScriptEnabled() |
android.webkit.WebSettings.LayoutAlgorithm |
getLayoutAlgorithm() |
boolean |
getLightTouchEnabled() |
boolean |
getLoadsImagesAutomatically() |
boolean |
getLoadWithOverviewMode() |
boolean |
getMediaPlaybackRequiresUserGesture() |
int |
getMinimumFontSize() |
int |
getMinimumLogicalFontSize() |
int |
getMixedContentMode() |
boolean |
getNavDump() |
boolean |
getNeedInitialFocus() |
boolean |
getOffscreenPreRaster() |
boolean |
getPluginsEnabled() |
android.webkit.WebSettings.PluginState |
getPluginState() |
android.webkit.WebSettings.RenderPriority |
getRenderPriority() |
boolean |
getSafeBrowsingEnabled() |
java.lang.String |
getSansSerifFontFamily() |
boolean |
getSaveFormData() |
boolean |
getSavePassword() |
java.lang.String |
getSerifFontFamily() |
java.lang.String |
getStandardFontFamily() |
boolean |
getSupportMultipleWindows() |
boolean |
getSupportZoom() |
int |
getTextZoom() |
int |
getUserAgent() |
java.lang.String |
getUserAgentString() |
boolean |
getUseWebViewBackgroundForOverscrollBackground() |
boolean |
getUseWideViewPort() |
boolean |
getVideoOverlayForEmbeddedEncryptedVideoEnabled() |
void |
setAcceptThirdPartyCookies(boolean acceptThirdPartyCookies) |
void |
setAllowContentAccess(boolean allow) |
void |
setAllowFileAccess(boolean allow) |
void |
setAllowFileAccessFromFileURLs(boolean allow) |
void |
setAllowUniversalAccessFromFileURLs(boolean allow) |
void |
setAppCacheEnabled(boolean appCacheEnabled) |
void |
setAppCacheMaxSize(long appCacheMaxSize) |
void |
setAppCachePath(java.lang.String appCachePath) |
void |
setBlockNetworkImage(boolean flag) |
void |
setBlockNetworkLoads(boolean flag) |
void |
setBuiltInZoomControls(boolean enabled) |
void |
setCacheMode(int mode) |
void |
setCursiveFontFamily(java.lang.String cursiveFontFamily) |
void |
setDatabaseEnabled(boolean flag) |
void |
setDatabasePath(java.lang.String path) |
void |
setDefaultFixedFontSize(int defaultFixedFontSize) |
void |
setDefaultFontSize(int defaultFontSize) |
void |
setDefaultTextEncodingName(java.lang.String defaultTextEncoding) |
void |
setDefaultZoom(android.webkit.WebSettings.ZoomDensity zoom) |
void |
setDisabledActionModeMenuItems(int menuItems) |
void |
setDisplayZoomControls(boolean enabled) |
void |
setDomStorageEnabled(boolean flag) |
void |
setEnableSmoothTransition(boolean enableSmoothTransition) |
void |
setFantasyFontFamily(java.lang.String fantasyFontFamily) |
void |
setFixedFontFamily(java.lang.String fixedFontFamily) |
void |
setGeolocationDatabasePath(java.lang.String geolocationDatabasePath) |
void |
setGeolocationEnabled(boolean geolocationEnabled) |
void |
setJavaScriptCanOpenWindowsAutomatically(boolean javaScriptCanOpenWindowAutomatically) |
void |
setJavaScriptEnabled(boolean flag) |
void |
setLayoutAlgorithm(android.webkit.WebSettings.LayoutAlgorithm algorithm) |
void |
setLightTouchEnabled(boolean flag) |
void |
setLoadsImagesAutomatically(boolean loadsImagesAutomatically) |
void |
setLoadWithOverviewMode(boolean flag) |
void |
setMediaPlaybackRequiresUserGesture(boolean require) |
void |
setMinimumFontSize(int minimumFontSize) |
void |
setMinimumLogicalFontSize(int minimumLogicalFontSize) |
void |
setMixedContentMode(int mixedContentMode) |
void |
setNavDump(boolean navDump) |
void |
setNeedInitialFocus(boolean flag) |
void |
setOffscreenPreRaster(boolean enabled) |
void |
setPluginsEnabled(boolean flag) |
void |
setPluginState(android.webkit.WebSettings.PluginState state) |
void |
setRenderPriority(android.webkit.WebSettings.RenderPriority priority) |
void |
setSafeBrowsingEnabled(boolean enabled) |
void |
setSansSerifFontFamily(java.lang.String sansSerifFontFamily) |
void |
setSaveFormData(boolean saveFormData) |
void |
setSavePassword(boolean savePassword) |
void |
setSerifFontFamily(java.lang.String serifFontFamily) |
void |
setStandardFontFamily(java.lang.String standardFontFamily) |
void |
setSupportMultipleWindows(boolean support) |
void |
setSupportZoom(boolean support) |
void |
setTextZoom(int textZoom) |
void |
setUserAgent(int userAgent) |
void |
setUserAgentString(java.lang.String ua) |
void |
setUseWebViewBackgroundForOverscrollBackground(boolean useWebViewBackgroundForOverscrollBackground) |
void |
setUseWideViewPort(boolean useWideViewPort) |
void |
setVideoOverlayForEmbeddedEncryptedVideoEnabled(boolean b) |
boolean |
supportMultipleWindows() |
boolean |
supportZoom() |
public boolean getBlockNetworkImage()
getBlockNetworkImage
in class android.webkit.WebSettings
public void setBlockNetworkImage(boolean flag)
setBlockNetworkImage
in class android.webkit.WebSettings
public boolean getJavaScriptEnabled()
getJavaScriptEnabled
in class android.webkit.WebSettings
public void setJavaScriptEnabled(boolean flag)
setJavaScriptEnabled
in class android.webkit.WebSettings
public boolean getLightTouchEnabled()
getLightTouchEnabled
in class android.webkit.WebSettings
public void setLightTouchEnabled(boolean flag)
setLightTouchEnabled
in class android.webkit.WebSettings
public boolean getNeedInitialFocus()
public void setNeedInitialFocus(boolean flag)
setNeedInitialFocus
in class android.webkit.WebSettings
public void setRenderPriority(android.webkit.WebSettings.RenderPriority priority)
setRenderPriority
in class android.webkit.WebSettings
public android.webkit.WebSettings.RenderPriority getRenderPriority()
public boolean getPluginsEnabled()
getPluginsEnabled
in class android.webkit.WebSettings
public void setPluginsEnabled(boolean flag)
setPluginsEnabled
in class android.webkit.WebSettings
public boolean getSupportMultipleWindows()
public void setSupportMultipleWindows(boolean support)
setSupportMultipleWindows
in class android.webkit.WebSettings
public boolean getSupportZoom()
public void setSupportZoom(boolean support)
setSupportZoom
in class android.webkit.WebSettings
public void setCacheMode(int mode)
setCacheMode
in class android.webkit.WebSettings
public int getCacheMode()
getCacheMode
in class android.webkit.WebSettings
public boolean getUseWideViewPort()
getUseWideViewPort
in class android.webkit.WebSettings
public void setUseWideViewPort(boolean useWideViewPort)
setUseWideViewPort
in class android.webkit.WebSettings
public boolean getSaveFormData()
getSaveFormData
in class android.webkit.WebSettings
public void setSaveFormData(boolean saveFormData)
setSaveFormData
in class android.webkit.WebSettings
public void setJavaScriptCanOpenWindowsAutomatically(boolean javaScriptCanOpenWindowAutomatically)
setJavaScriptCanOpenWindowsAutomatically
in class android.webkit.WebSettings
public boolean getJavaScriptCanOpenWindowsAutomatically()
getJavaScriptCanOpenWindowsAutomatically
in class android.webkit.WebSettings
public void setLayoutAlgorithm(android.webkit.WebSettings.LayoutAlgorithm algorithm)
setLayoutAlgorithm
in class android.webkit.WebSettings
public java.lang.String getDefaultTextEncodingName()
getDefaultTextEncodingName
in class android.webkit.WebSettings
public void setDefaultTextEncodingName(java.lang.String defaultTextEncoding)
setDefaultTextEncodingName
in class android.webkit.WebSettings
public int getDefaultFontSize()
getDefaultFontSize
in class android.webkit.WebSettings
public void setDefaultFontSize(int defaultFontSize)
setDefaultFontSize
in class android.webkit.WebSettings
public boolean getLoadsImagesAutomatically()
getLoadsImagesAutomatically
in class android.webkit.WebSettings
public void setLoadsImagesAutomatically(boolean loadsImagesAutomatically)
setLoadsImagesAutomatically
in class android.webkit.WebSettings
public int getDefaultFixedFontSize()
getDefaultFixedFontSize
in class android.webkit.WebSettings
public void setDefaultFixedFontSize(int defaultFixedFontSize)
setDefaultFixedFontSize
in class android.webkit.WebSettings
public int getMinimumLogicalFontSize()
getMinimumLogicalFontSize
in class android.webkit.WebSettings
public void setMinimumLogicalFontSize(int minimumLogicalFontSize)
setMinimumLogicalFontSize
in class android.webkit.WebSettings
public int getMinimumFontSize()
getMinimumFontSize
in class android.webkit.WebSettings
public void setMinimumFontSize(int minimumFontSize)
setMinimumFontSize
in class android.webkit.WebSettings
public java.lang.String getFantasyFontFamily()
getFantasyFontFamily
in class android.webkit.WebSettings
public void setFantasyFontFamily(java.lang.String fantasyFontFamily)
setFantasyFontFamily
in class android.webkit.WebSettings
public java.lang.String getCursiveFontFamily()
getCursiveFontFamily
in class android.webkit.WebSettings
public void setCursiveFontFamily(java.lang.String cursiveFontFamily)
setCursiveFontFamily
in class android.webkit.WebSettings
public java.lang.String getSerifFontFamily()
getSerifFontFamily
in class android.webkit.WebSettings
public void setSerifFontFamily(java.lang.String serifFontFamily)
setSerifFontFamily
in class android.webkit.WebSettings
public java.lang.String getSansSerifFontFamily()
getSansSerifFontFamily
in class android.webkit.WebSettings
public void setSansSerifFontFamily(java.lang.String sansSerifFontFamily)
setSansSerifFontFamily
in class android.webkit.WebSettings
public java.lang.String getFixedFontFamily()
getFixedFontFamily
in class android.webkit.WebSettings
public void setFixedFontFamily(java.lang.String fixedFontFamily)
setFixedFontFamily
in class android.webkit.WebSettings
public java.lang.String getStandardFontFamily()
getStandardFontFamily
in class android.webkit.WebSettings
public void setStandardFontFamily(java.lang.String standardFontFamily)
setStandardFontFamily
in class android.webkit.WebSettings
public android.webkit.WebSettings.LayoutAlgorithm getLayoutAlgorithm()
getLayoutAlgorithm
in class android.webkit.WebSettings
public boolean supportMultipleWindows()
supportMultipleWindows
in class android.webkit.WebSettings
public boolean getSavePassword()
getSavePassword
in class android.webkit.WebSettings
public void setSavePassword(boolean savePassword)
setSavePassword
in class android.webkit.WebSettings
public boolean supportZoom()
supportZoom
in class android.webkit.WebSettings
public int getUserAgent()
getUserAgent
in class android.webkit.WebSettings
public void setUserAgent(int userAgent)
setUserAgent
in class android.webkit.WebSettings
public boolean getNavDump()
getNavDump
in class android.webkit.WebSettings
public void setNavDump(boolean navDump)
setNavDump
in class android.webkit.WebSettings
public boolean getAllowFileAccess()
getAllowFileAccess
in class android.webkit.WebSettings
public void setAllowFileAccess(boolean allow)
setAllowFileAccess
in class android.webkit.WebSettings
public boolean getBuiltInZoomControls()
getBuiltInZoomControls
in class android.webkit.WebSettings
public void setBuiltInZoomControls(boolean enabled)
setBuiltInZoomControls
in class android.webkit.WebSettings
public void setUserAgentString(java.lang.String ua)
setUserAgentString
in class android.webkit.WebSettings
public java.lang.String getUserAgentString()
getUserAgentString
in class android.webkit.WebSettings
public boolean getDatabaseEnabled()
getDatabaseEnabled
in class android.webkit.WebSettings
public void setDatabaseEnabled(boolean flag)
setDatabaseEnabled
in class android.webkit.WebSettings
public void setDatabasePath(java.lang.String path)
setDatabasePath
in class android.webkit.WebSettings
public java.lang.String getDatabasePath()
getDatabasePath
in class android.webkit.WebSettings
public java.lang.String getGeolocationDatabasePath()
public void setGeolocationDatabasePath(java.lang.String geolocationDatabasePath)
setGeolocationDatabasePath
in class android.webkit.WebSettings
public boolean getGeolocationEnabled()
public void setGeolocationEnabled(boolean geolocationEnabled)
setGeolocationEnabled
in class android.webkit.WebSettings
public void setDefaultZoom(android.webkit.WebSettings.ZoomDensity zoom)
setDefaultZoom
in class android.webkit.WebSettings
public android.webkit.WebSettings.ZoomDensity getDefaultZoom()
getDefaultZoom
in class android.webkit.WebSettings
public boolean getDomStorageEnabled()
getDomStorageEnabled
in class android.webkit.WebSettings
public void setDomStorageEnabled(boolean flag)
setDomStorageEnabled
in class android.webkit.WebSettings
public boolean getLoadWithOverviewMode()
getLoadWithOverviewMode
in class android.webkit.WebSettings
public void setLoadWithOverviewMode(boolean flag)
setLoadWithOverviewMode
in class android.webkit.WebSettings
public boolean getAppCacheEnabled()
public void setAppCacheEnabled(boolean appCacheEnabled)
setAppCacheEnabled
in class android.webkit.WebSettings
public void setAppCacheMaxSize(long appCacheMaxSize)
setAppCacheMaxSize
in class android.webkit.WebSettings
public long getAppCacheMaxSize()
public java.lang.String getAppCachePath()
public void setAppCachePath(java.lang.String appCachePath)
setAppCachePath
in class android.webkit.WebSettings
public boolean getBlockNetworkLoads()
getBlockNetworkLoads
in class android.webkit.WebSettings
public void setBlockNetworkLoads(boolean flag)
setBlockNetworkLoads
in class android.webkit.WebSettings
public android.webkit.WebSettings.PluginState getPluginState()
getPluginState
in class android.webkit.WebSettings
public void setPluginState(android.webkit.WebSettings.PluginState state)
setPluginState
in class android.webkit.WebSettings
public boolean getUseWebViewBackgroundForOverscrollBackground()
getUseWebViewBackgroundForOverscrollBackground
in class android.webkit.WebSettings
public void setUseWebViewBackgroundForOverscrollBackground(boolean useWebViewBackgroundForOverscrollBackground)
setUseWebViewBackgroundForOverscrollBackground
in class android.webkit.WebSettings
public boolean enableSmoothTransition()
enableSmoothTransition
in class android.webkit.WebSettings
public void setEnableSmoothTransition(boolean enableSmoothTransition)
setEnableSmoothTransition
in class android.webkit.WebSettings
public void setAllowContentAccess(boolean allow)
setAllowContentAccess
in class android.webkit.WebSettings
public boolean getAllowContentAccess()
getAllowContentAccess
in class android.webkit.WebSettings
public void setDisplayZoomControls(boolean enabled)
setDisplayZoomControls
in class android.webkit.WebSettings
public boolean getDisplayZoomControls()
getDisplayZoomControls
in class android.webkit.WebSettings
public int getTextZoom()
getTextZoom
in class android.webkit.WebSettings
public void setTextZoom(int textZoom)
setTextZoom
in class android.webkit.WebSettings
public boolean getAllowFileAccessFromFileURLs()
getAllowFileAccessFromFileURLs
in class android.webkit.WebSettings
public void setAllowFileAccessFromFileURLs(boolean allow)
setAllowFileAccessFromFileURLs
in class android.webkit.WebSettings
public boolean getAllowUniversalAccessFromFileURLs()
getAllowUniversalAccessFromFileURLs
in class android.webkit.WebSettings
public void setAllowUniversalAccessFromFileURLs(boolean allow)
setAllowUniversalAccessFromFileURLs
in class android.webkit.WebSettings
public boolean getMediaPlaybackRequiresUserGesture()
getMediaPlaybackRequiresUserGesture
in class android.webkit.WebSettings
public void setMediaPlaybackRequiresUserGesture(boolean require)
setMediaPlaybackRequiresUserGesture
in class android.webkit.WebSettings
public void setMixedContentMode(int mixedContentMode)
setMixedContentMode
in class android.webkit.WebSettings
public int getMixedContentMode()
getMixedContentMode
in class android.webkit.WebSettings
public void setVideoOverlayForEmbeddedEncryptedVideoEnabled(boolean b)
setVideoOverlayForEmbeddedEncryptedVideoEnabled
in class android.webkit.WebSettings
public boolean getVideoOverlayForEmbeddedEncryptedVideoEnabled()
getVideoOverlayForEmbeddedEncryptedVideoEnabled
in class android.webkit.WebSettings
public boolean getAcceptThirdPartyCookies()
getAcceptThirdPartyCookies
in class android.webkit.WebSettings
public void setAcceptThirdPartyCookies(boolean acceptThirdPartyCookies)
setAcceptThirdPartyCookies
in class android.webkit.WebSettings
public void setOffscreenPreRaster(boolean enabled)
setOffscreenPreRaster
in class android.webkit.WebSettings
public boolean getOffscreenPreRaster()
getOffscreenPreRaster
in class android.webkit.WebSettings
public int getDisabledActionModeMenuItems()
getDisabledActionModeMenuItems
in class android.webkit.WebSettings
public void setDisabledActionModeMenuItems(int menuItems)
setDisabledActionModeMenuItems
in class android.webkit.WebSettings
public boolean getSafeBrowsingEnabled()
getSafeBrowsingEnabled
in class android.webkit.WebSettings
public void setSafeBrowsingEnabled(boolean enabled)
setSafeBrowsingEnabled
in class android.webkit.WebSettings