Class RoboWebSettings


  • public class RoboWebSettings
    extends android.webkit.WebSettings
    Robolectric implementation of WebSettings.
    • Constructor Detail

      • RoboWebSettings

        public RoboWebSettings()
    • Method Detail

      • getBlockNetworkImage

        public boolean getBlockNetworkImage()
        Specified by:
        getBlockNetworkImage in class android.webkit.WebSettings
      • setBlockNetworkImage

        public void setBlockNetworkImage​(boolean flag)
        Specified by:
        setBlockNetworkImage in class android.webkit.WebSettings
      • getJavaScriptEnabled

        public boolean getJavaScriptEnabled()
        Specified by:
        getJavaScriptEnabled in class android.webkit.WebSettings
      • setJavaScriptEnabled

        public void setJavaScriptEnabled​(boolean flag)
        Specified by:
        setJavaScriptEnabled in class android.webkit.WebSettings
      • getLightTouchEnabled

        public boolean getLightTouchEnabled()
        Specified by:
        getLightTouchEnabled in class android.webkit.WebSettings
      • setLightTouchEnabled

        public void setLightTouchEnabled​(boolean flag)
        Specified by:
        setLightTouchEnabled in class android.webkit.WebSettings
      • getNeedInitialFocus

        public boolean getNeedInitialFocus()
      • setNeedInitialFocus

        public void setNeedInitialFocus​(boolean flag)
        Specified by:
        setNeedInitialFocus in class android.webkit.WebSettings
      • setRenderPriority

        public void setRenderPriority​(android.webkit.WebSettings.RenderPriority priority)
        Specified by:
        setRenderPriority in class android.webkit.WebSettings
      • getRenderPriority

        public android.webkit.WebSettings.RenderPriority getRenderPriority()
      • getPluginsEnabled

        public boolean getPluginsEnabled()
        Specified by:
        getPluginsEnabled in class android.webkit.WebSettings
      • setPluginsEnabled

        public void setPluginsEnabled​(boolean flag)
        Specified by:
        setPluginsEnabled in class android.webkit.WebSettings
      • getSupportMultipleWindows

        public boolean getSupportMultipleWindows()
      • setSupportMultipleWindows

        public void setSupportMultipleWindows​(boolean support)
        Specified by:
        setSupportMultipleWindows in class android.webkit.WebSettings
      • getSupportZoom

        public boolean getSupportZoom()
      • setSupportZoom

        public void setSupportZoom​(boolean support)
        Specified by:
        setSupportZoom in class android.webkit.WebSettings
      • setCacheMode

        public void setCacheMode​(int mode)
        Specified by:
        setCacheMode in class android.webkit.WebSettings
      • getCacheMode

        public int getCacheMode()
        Specified by:
        getCacheMode in class android.webkit.WebSettings
      • getUseWideViewPort

        public boolean getUseWideViewPort()
        Specified by:
        getUseWideViewPort in class android.webkit.WebSettings
      • setUseWideViewPort

        public void setUseWideViewPort​(boolean useWideViewPort)
        Specified by:
        setUseWideViewPort in class android.webkit.WebSettings
      • getSaveFormData

        public boolean getSaveFormData()
        Specified by:
        getSaveFormData in class android.webkit.WebSettings
      • setSaveFormData

        public void setSaveFormData​(boolean saveFormData)
        Specified by:
        setSaveFormData in class android.webkit.WebSettings
      • setJavaScriptCanOpenWindowsAutomatically

        public void setJavaScriptCanOpenWindowsAutomatically​(boolean javaScriptCanOpenWindowAutomatically)
        Specified by:
        setJavaScriptCanOpenWindowsAutomatically in class android.webkit.WebSettings
      • getJavaScriptCanOpenWindowsAutomatically

        public boolean getJavaScriptCanOpenWindowsAutomatically()
        Specified by:
        getJavaScriptCanOpenWindowsAutomatically in class android.webkit.WebSettings
      • setLayoutAlgorithm

        public void setLayoutAlgorithm​(android.webkit.WebSettings.LayoutAlgorithm algorithm)
        Specified by:
        setLayoutAlgorithm in class android.webkit.WebSettings
      • getDefaultTextEncodingName

        public java.lang.String getDefaultTextEncodingName()
        Specified by:
        getDefaultTextEncodingName in class android.webkit.WebSettings
      • setDefaultTextEncodingName

        public void setDefaultTextEncodingName​(java.lang.String defaultTextEncoding)
        Specified by:
        setDefaultTextEncodingName in class android.webkit.WebSettings
      • getDefaultFontSize

        public int getDefaultFontSize()
        Specified by:
        getDefaultFontSize in class android.webkit.WebSettings
      • setDefaultFontSize

        public void setDefaultFontSize​(int defaultFontSize)
        Specified by:
        setDefaultFontSize in class android.webkit.WebSettings
      • getLoadsImagesAutomatically

        public boolean getLoadsImagesAutomatically()
        Specified by:
        getLoadsImagesAutomatically in class android.webkit.WebSettings
      • setLoadsImagesAutomatically

        public void setLoadsImagesAutomatically​(boolean loadsImagesAutomatically)
        Specified by:
        setLoadsImagesAutomatically in class android.webkit.WebSettings
      • getDefaultFixedFontSize

        public int getDefaultFixedFontSize()
        Specified by:
        getDefaultFixedFontSize in class android.webkit.WebSettings
      • setDefaultFixedFontSize

        public void setDefaultFixedFontSize​(int defaultFixedFontSize)
        Specified by:
        setDefaultFixedFontSize in class android.webkit.WebSettings
      • getMinimumLogicalFontSize

        public int getMinimumLogicalFontSize()
        Specified by:
        getMinimumLogicalFontSize in class android.webkit.WebSettings
      • setMinimumLogicalFontSize

        public void setMinimumLogicalFontSize​(int minimumLogicalFontSize)
        Specified by:
        setMinimumLogicalFontSize in class android.webkit.WebSettings
      • getMinimumFontSize

        public int getMinimumFontSize()
        Specified by:
        getMinimumFontSize in class android.webkit.WebSettings
      • setMinimumFontSize

        public void setMinimumFontSize​(int minimumFontSize)
        Specified by:
        setMinimumFontSize in class android.webkit.WebSettings
      • getFantasyFontFamily

        public java.lang.String getFantasyFontFamily()
        Specified by:
        getFantasyFontFamily in class android.webkit.WebSettings
      • setFantasyFontFamily

        public void setFantasyFontFamily​(java.lang.String fantasyFontFamily)
        Specified by:
        setFantasyFontFamily in class android.webkit.WebSettings
      • getCursiveFontFamily

        public java.lang.String getCursiveFontFamily()
        Specified by:
        getCursiveFontFamily in class android.webkit.WebSettings
      • setCursiveFontFamily

        public void setCursiveFontFamily​(java.lang.String cursiveFontFamily)
        Specified by:
        setCursiveFontFamily in class android.webkit.WebSettings
      • getSerifFontFamily

        public java.lang.String getSerifFontFamily()
        Specified by:
        getSerifFontFamily in class android.webkit.WebSettings
      • setSerifFontFamily

        public void setSerifFontFamily​(java.lang.String serifFontFamily)
        Specified by:
        setSerifFontFamily in class android.webkit.WebSettings
      • getSansSerifFontFamily

        public java.lang.String getSansSerifFontFamily()
        Specified by:
        getSansSerifFontFamily in class android.webkit.WebSettings
      • setSansSerifFontFamily

        public void setSansSerifFontFamily​(java.lang.String sansSerifFontFamily)
        Specified by:
        setSansSerifFontFamily in class android.webkit.WebSettings
      • getFixedFontFamily

        public java.lang.String getFixedFontFamily()
        Specified by:
        getFixedFontFamily in class android.webkit.WebSettings
      • setFixedFontFamily

        public void setFixedFontFamily​(java.lang.String fixedFontFamily)
        Specified by:
        setFixedFontFamily in class android.webkit.WebSettings
      • getStandardFontFamily

        public java.lang.String getStandardFontFamily()
        Specified by:
        getStandardFontFamily in class android.webkit.WebSettings
      • setStandardFontFamily

        public void setStandardFontFamily​(java.lang.String standardFontFamily)
        Specified by:
        setStandardFontFamily in class android.webkit.WebSettings
      • getLayoutAlgorithm

        public android.webkit.WebSettings.LayoutAlgorithm getLayoutAlgorithm()
        Specified by:
        getLayoutAlgorithm in class android.webkit.WebSettings
      • supportMultipleWindows

        public boolean supportMultipleWindows()
        Specified by:
        supportMultipleWindows in class android.webkit.WebSettings
      • getSavePassword

        public boolean getSavePassword()
        Specified by:
        getSavePassword in class android.webkit.WebSettings
      • setSavePassword

        public void setSavePassword​(boolean savePassword)
        Specified by:
        setSavePassword in class android.webkit.WebSettings
      • supportZoom

        public boolean supportZoom()
        Specified by:
        supportZoom in class android.webkit.WebSettings
      • getUserAgent

        public int getUserAgent()
        Specified by:
        getUserAgent in class android.webkit.WebSettings
      • setUserAgent

        public void setUserAgent​(int userAgent)
        Specified by:
        setUserAgent in class android.webkit.WebSettings
      • getNavDump

        public boolean getNavDump()
        Specified by:
        getNavDump in class android.webkit.WebSettings
      • setNavDump

        public void setNavDump​(boolean navDump)
        Specified by:
        setNavDump in class android.webkit.WebSettings
      • getAllowFileAccess

        public boolean getAllowFileAccess()
        Specified by:
        getAllowFileAccess in class android.webkit.WebSettings
      • setAllowFileAccess

        public void setAllowFileAccess​(boolean allow)
        Specified by:
        setAllowFileAccess in class android.webkit.WebSettings
      • getBuiltInZoomControls

        public boolean getBuiltInZoomControls()
        Specified by:
        getBuiltInZoomControls in class android.webkit.WebSettings
      • setBuiltInZoomControls

        public void setBuiltInZoomControls​(boolean enabled)
        Specified by:
        setBuiltInZoomControls in class android.webkit.WebSettings
      • setUserAgentString

        public void setUserAgentString​(java.lang.String ua)
        Specified by:
        setUserAgentString in class android.webkit.WebSettings
      • getUserAgentString

        public java.lang.String getUserAgentString()
        Specified by:
        getUserAgentString in class android.webkit.WebSettings
      • getDatabaseEnabled

        public boolean getDatabaseEnabled()
        Specified by:
        getDatabaseEnabled in class android.webkit.WebSettings
      • setDatabaseEnabled

        public void setDatabaseEnabled​(boolean flag)
        Specified by:
        setDatabaseEnabled in class android.webkit.WebSettings
      • setDatabasePath

        public void setDatabasePath​(java.lang.String path)
        Specified by:
        setDatabasePath in class android.webkit.WebSettings
      • getDatabasePath

        public java.lang.String getDatabasePath()
        Specified by:
        getDatabasePath in class android.webkit.WebSettings
      • getGeolocationDatabasePath

        public java.lang.String getGeolocationDatabasePath()
      • setGeolocationDatabasePath

        public void setGeolocationDatabasePath​(java.lang.String geolocationDatabasePath)
        Specified by:
        setGeolocationDatabasePath in class android.webkit.WebSettings
      • getGeolocationEnabled

        public boolean getGeolocationEnabled()
      • setGeolocationEnabled

        public void setGeolocationEnabled​(boolean geolocationEnabled)
        Specified by:
        setGeolocationEnabled in class android.webkit.WebSettings
      • setDefaultZoom

        public void setDefaultZoom​(android.webkit.WebSettings.ZoomDensity zoom)
        Specified by:
        setDefaultZoom in class android.webkit.WebSettings
      • getDefaultZoom

        public android.webkit.WebSettings.ZoomDensity getDefaultZoom()
        Specified by:
        getDefaultZoom in class android.webkit.WebSettings
      • getDomStorageEnabled

        public boolean getDomStorageEnabled()
        Specified by:
        getDomStorageEnabled in class android.webkit.WebSettings
      • setDomStorageEnabled

        public void setDomStorageEnabled​(boolean flag)
        Specified by:
        setDomStorageEnabled in class android.webkit.WebSettings
      • getLoadWithOverviewMode

        public boolean getLoadWithOverviewMode()
        Specified by:
        getLoadWithOverviewMode in class android.webkit.WebSettings
      • setLoadWithOverviewMode

        public void setLoadWithOverviewMode​(boolean flag)
        Specified by:
        setLoadWithOverviewMode in class android.webkit.WebSettings
      • getAppCacheEnabled

        public boolean getAppCacheEnabled()
      • setAppCacheEnabled

        public void setAppCacheEnabled​(boolean appCacheEnabled)
        Specified by:
        setAppCacheEnabled in class android.webkit.WebSettings
      • setAppCacheMaxSize

        public void setAppCacheMaxSize​(long appCacheMaxSize)
        Specified by:
        setAppCacheMaxSize in class android.webkit.WebSettings
      • getAppCacheMaxSize

        public long getAppCacheMaxSize()
      • getAppCachePath

        public java.lang.String getAppCachePath()
      • setAppCachePath

        public void setAppCachePath​(java.lang.String appCachePath)
        Specified by:
        setAppCachePath in class android.webkit.WebSettings
      • getBlockNetworkLoads

        public boolean getBlockNetworkLoads()
        Specified by:
        getBlockNetworkLoads in class android.webkit.WebSettings
      • setBlockNetworkLoads

        public void setBlockNetworkLoads​(boolean flag)
        Specified by:
        setBlockNetworkLoads in class android.webkit.WebSettings
      • getPluginState

        public android.webkit.WebSettings.PluginState getPluginState()
        Specified by:
        getPluginState in class android.webkit.WebSettings
      • setPluginState

        public void setPluginState​(android.webkit.WebSettings.PluginState state)
        Specified by:
        setPluginState in class android.webkit.WebSettings
      • getUseWebViewBackgroundForOverscrollBackground

        public boolean getUseWebViewBackgroundForOverscrollBackground()
        Specified by:
        getUseWebViewBackgroundForOverscrollBackground in class android.webkit.WebSettings
      • setUseWebViewBackgroundForOverscrollBackground

        public void setUseWebViewBackgroundForOverscrollBackground​(boolean useWebViewBackgroundForOverscrollBackground)
        Specified by:
        setUseWebViewBackgroundForOverscrollBackground in class android.webkit.WebSettings
      • enableSmoothTransition

        public boolean enableSmoothTransition()
        Specified by:
        enableSmoothTransition in class android.webkit.WebSettings
      • setEnableSmoothTransition

        public void setEnableSmoothTransition​(boolean enableSmoothTransition)
        Specified by:
        setEnableSmoothTransition in class android.webkit.WebSettings
      • setAllowContentAccess

        public void setAllowContentAccess​(boolean allow)
        Specified by:
        setAllowContentAccess in class android.webkit.WebSettings
      • getAllowContentAccess

        public boolean getAllowContentAccess()
        Specified by:
        getAllowContentAccess in class android.webkit.WebSettings
      • setDisplayZoomControls

        public void setDisplayZoomControls​(boolean enabled)
        Specified by:
        setDisplayZoomControls in class android.webkit.WebSettings
      • getDisplayZoomControls

        public boolean getDisplayZoomControls()
        Specified by:
        getDisplayZoomControls in class android.webkit.WebSettings
      • getTextZoom

        public int getTextZoom()
        Specified by:
        getTextZoom in class android.webkit.WebSettings
      • setTextZoom

        public void setTextZoom​(int textZoom)
        Specified by:
        setTextZoom in class android.webkit.WebSettings
      • getAllowFileAccessFromFileURLs

        public boolean getAllowFileAccessFromFileURLs()
        Specified by:
        getAllowFileAccessFromFileURLs in class android.webkit.WebSettings
      • setAllowFileAccessFromFileURLs

        public void setAllowFileAccessFromFileURLs​(boolean allow)
        Specified by:
        setAllowFileAccessFromFileURLs in class android.webkit.WebSettings
      • getAllowUniversalAccessFromFileURLs

        public boolean getAllowUniversalAccessFromFileURLs()
        Specified by:
        getAllowUniversalAccessFromFileURLs in class android.webkit.WebSettings
      • setAllowUniversalAccessFromFileURLs

        public void setAllowUniversalAccessFromFileURLs​(boolean allow)
        Specified by:
        setAllowUniversalAccessFromFileURLs in class android.webkit.WebSettings
      • getMediaPlaybackRequiresUserGesture

        public boolean getMediaPlaybackRequiresUserGesture()
        Specified by:
        getMediaPlaybackRequiresUserGesture in class android.webkit.WebSettings
      • setMediaPlaybackRequiresUserGesture

        public void setMediaPlaybackRequiresUserGesture​(boolean require)
        Specified by:
        setMediaPlaybackRequiresUserGesture in class android.webkit.WebSettings
      • setMixedContentMode

        public void setMixedContentMode​(int mixedContentMode)
        Specified by:
        setMixedContentMode in class android.webkit.WebSettings
      • getMixedContentMode

        public int getMixedContentMode()
        Specified by:
        getMixedContentMode in class android.webkit.WebSettings
      • setVideoOverlayForEmbeddedEncryptedVideoEnabled

        public void setVideoOverlayForEmbeddedEncryptedVideoEnabled​(boolean b)
        Specified by:
        setVideoOverlayForEmbeddedEncryptedVideoEnabled in class android.webkit.WebSettings
      • getVideoOverlayForEmbeddedEncryptedVideoEnabled

        public boolean getVideoOverlayForEmbeddedEncryptedVideoEnabled()
        Specified by:
        getVideoOverlayForEmbeddedEncryptedVideoEnabled in class android.webkit.WebSettings
      • getAcceptThirdPartyCookies

        public boolean getAcceptThirdPartyCookies()
        Specified by:
        getAcceptThirdPartyCookies in class android.webkit.WebSettings
      • setAcceptThirdPartyCookies

        public void setAcceptThirdPartyCookies​(boolean acceptThirdPartyCookies)
        Specified by:
        setAcceptThirdPartyCookies in class android.webkit.WebSettings
      • setOffscreenPreRaster

        public void setOffscreenPreRaster​(boolean enabled)
        Specified by:
        setOffscreenPreRaster in class android.webkit.WebSettings
      • getOffscreenPreRaster

        public boolean getOffscreenPreRaster()
        Specified by:
        getOffscreenPreRaster in class android.webkit.WebSettings
      • getDisabledActionModeMenuItems

        public int getDisabledActionModeMenuItems()
        Specified by:
        getDisabledActionModeMenuItems in class android.webkit.WebSettings
      • setDisabledActionModeMenuItems

        public void setDisabledActionModeMenuItems​(int menuItems)
        Specified by:
        setDisabledActionModeMenuItems in class android.webkit.WebSettings
      • getSafeBrowsingEnabled

        public boolean getSafeBrowsingEnabled()
        Specified by:
        getSafeBrowsingEnabled in class android.webkit.WebSettings
      • setSafeBrowsingEnabled

        public void setSafeBrowsingEnabled​(boolean enabled)
        Specified by:
        setSafeBrowsingEnabled in class android.webkit.WebSettings
      • getForceDark

        public int getForceDark()
        Overrides:
        getForceDark in class android.webkit.WebSettings
      • setForceDark

        public void setForceDark​(int forceDark)
        Overrides:
        setForceDark in class android.webkit.WebSettings