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