Manages settings state for WebViews.
Path:

webSettings

Hierarchy

  • WebSettings

Properties

allowContentAccess: boolean

Default: true

Enables or disables content URL access within WebViews.

webSettings.allowContentAccess

allowFileAccess: boolean

Default: true

Enables or disables file access within WebViews.

webSettings.allowFileAccess

allowFileAccessFromFileURLs: boolean

Default: true

Sets whether cross-origin requests in the context of a file scheme URL should be allowed to access content from other file scheme URLs.

webSettings.allowFileAccessFromFileURLs

allowUniversalAccessFromFileURLs: boolean

Default: true

Sets whether cross-origin requests in the context of a file scheme URL should be allowed to access content from any origin.

webSettings.allowUniversalAccessFromFileURLs

appCacheEnabled: boolean

Default: true

Sets whether the Application Caches API should be enabled.

webSettings.appCacheEnabled

blockNetworkImage: boolean

Default: false

Sets whether the WebViews should not load image resources from the network (resources accessed via http and https URI schemes).

webSettings.blockNetworkImage

blockNetworkLoads: boolean

Default: false

Sets whether the WebViews should not load resources from the network.

webSettings.blockNetworkLoads

builtInZoomControls: boolean

Default: true

Sets whether the WebViews should use their built-in zoom mechanisms.

webSettings.builtInZoomControls

cacheMode: number

Default: -1

Overrides the way the cache is used.

webSettings.cacheMode

cursiveFontFamily: string

Default: "cursive"

Sets the cursive font family name.

webSettings.cursiveFontFamily

databaseEnabled: boolean

Default: true

Sets whether the database storage API is enabled.

webSettings.databaseEnabled

defaultFixedFontSize: number

Default: 13

Sets the default fixed font size.

webSettings.defaultFixedFontSize

defaultFontSize: number

Default: 16

Sets the default font size.

webSettings.defaultFontSize

defaultTextEncodingName: string

Default: "UTF-8"

Sets the default text encoding name to use when decoding HTML pages.

webSettings.defaultTextEncodingName

disabledActionModeMenuItems: number

Default: 7

Disables the action mode menu items according to this value.

webSettings.disabledActionModeMenuItems

displayZoomControls: boolean

Default: false

Sets whether the WebViews should display on-screen zoom controls when using the built-in zoom mechanisms.

webSettings.displayZoomControls

domStorageEnabled: boolean

Default: true

Sets whether the DOM storage API is enabled.

webSettings.domStorageEnabled

fantasyFontFamily: string

Default: "fantasy"

Sets the fantasy font family name.

webSettings.fantasyFontFamily

fixedFontFamily: string

Default: "monospace"

Sets the fixed font family name.

webSettings.fixedFontFamily

geolocationDatabasePath: null | string

Sets the path where the Geolocation databases should be saved.

webSettings.geolocationDatabasePath

geolocationEnabled: boolean

Default: true

Sets whether Geolocation is enabled.

webSettings.geolocationEnabled

javaScriptCanOpenWindowsAutomatically: boolean

Default: false

Tells JavaScript to open windows automatically.

webSettings.javaScriptCanOpenWindowsAutomatically

javaScriptEnabled: boolean

Default: true

Tells the WebViews to enable JavaScript execution.

webSettings.javaScriptEnabled

layoutAlgorithm: LayoutAlgorithm

Default: "NORMAL"

Sets the underlying layout algorithm.

webSettings.layoutAlgorithm

loadWithOverviewMode: boolean

Default: true

Sets whether the WebViews load pages in overview mode, that is, zoom out the content to fit on screen by width.

webSettings.loadWithOverviewMode

loadsImagesAutomatically: boolean

Default: true

Sets whether the WebViews should load image resources.

webSettings.loadsImagesAutomatically

mediaPlaybackRequiresUserGesture: boolean

Default: false

Sets whether the WebViews requires a user gesture to play media.

webSettings.mediaPlaybackRequiresUserGesture

minimumFontSize: number

Default: 8

Sets the minimum font size.

webSettings.minimumFontSize

minimumLogicalFontSize: number

Default: 8

Sets the minimum logical font size.

webSettings.minimumLogicalFontSize

mixedContentMode: number

Default: 0

Configures the WebViews behavior when a secure origin attempts to load a resource from an insecure origin.

webSettings.mixedContentMode

needInitialFocus: boolean

Default: false

Tells the WebViews whether they need to set a node to have focus when focus is being requested.

webSettings.needInitialFocus

offscreenPreRaster: boolean

Default: false

Sets whether the WebViews should raster tiles when they are offscreen but attached to a window.

webSettings.offscreenPreRaster

sansSerifFontFamily: string

Default: "sans-serif"

Sets the sans-serif font family name.

webSettings.sansSerifFontFamily

saveFormData: boolean

Default: false

Sets whether the WebViews should save form data.

webSettings.saveFormData

serifFontFamily: string

Default: "serif"

Sets the serif font family name.

webSettings.serifFontFamily

standardFontFamily: string

Default: "sans-serif"

Sets the standard font family name.

webSettings.standardFontFamily

supportMultipleWindows: boolean

Default: false

Sets whether the WebViews support multiple windows.

webSettings.supportMultipleWindows

supportZoom: boolean

Default: false

Sets whether the WebViews should support zooming using their on-screen zoom controls and gestures.

webSettings.supportZoom

textZoom: number

Default: 100

Sets the text zoom of the pages in percent.

webSettings.textZoom

useWideViewPort: boolean

Default: false

Sets whether the WebViews should enable support for the "viewport" HTML meta tag or should use a wide viewport.

webSettings.useWideViewPort

userAgentString: null | string

Sets the WebViews user-agent string.

webSettings.userAgentString

Generated using TypeDoc