skrypton-api / com.waicool20.skrypton.jni.objects / SKryptonWebSettings

SKryptonWebSettings

class SKryptonWebSettings : NativeInterface

A class representing settings used by the backing web engine.

Properties

accelerated2dCanvasEnabled

var accelerated2dCanvasEnabled: Boolean

Specifies whether the HTML5 2D canvas should be a OpenGL framebuffer. This makes many painting operations faster, but slows down pixel access. Enabled by default if available.

allowGeolocationOnInsecureOrigins

var allowGeolocationOnInsecureOrigins: Boolean

Since Qt 5.7, only secure origins such as HTTPS have been able to request Geolocation features. This provides an override to allow non secure origins to access Geolocation again. Disabled by default.

allowRunningInsecureContent

var allowRunningInsecureContent: Boolean

By default, HTTPS pages cannot run JavaScript, CSS, plugins or web-sockets from HTTP URLs. This provides an override to get the old insecure behavior. Disabled by default.

autoLoadIconsForPage

var autoLoadIconsForPage: Boolean

Automatically downloads icons for web pages. Enabled by default.

autoLoadImages

var autoLoadImages: Boolean

Automatically downloads images for web pages. When this setting is disabled, images are loaded from the cache. Enabled by default.

defaultTextEncoding

var defaultTextEncoding: Charset

Default text encoding used by the web engine.

errorPageEnabled

var errorPageEnabled: Boolean

Enables displaying the built-in error pages of Chromium. Enabled by default.

focusOnNavigationEnabled

var focusOnNavigationEnabled: Boolean

Gives focus to the view associated with the page, whenever a navigation operation occurs (load, stop, reload, reload and bypass cache, forward, backward, set content, and so on). Enabled by default.

fullScreenSupportEnabled

var fullScreenSupportEnabled: Boolean

Enables fullscreen support in an application. Disabled by default.

handle

val handle: CPointer

Native pointer

hyperlinkAuditingEnabled

var hyperlinkAuditingEnabled: Boolean

Enables support for the ping attribute for hyperlinks. Disabled by default.

javascriptCanAccessClipboard

var javascriptCanAccessClipboard: Boolean

Allows JavaScript programs to read from and write to the clipboard. Writing to the clipboard is always allowed if it is specifically requested by the user. Disabled by default.

javascriptCanOpenWindows

var javascriptCanOpenWindows: Boolean

Allows JavaScript programs to open popup windows without user interaction. Enabled by default.

javascriptEnabled

var javascriptEnabled: Boolean

Enables the running of JavaScript programs. Enabled by default.

linksIncludedInFocusChain

var linksIncludedInFocusChain: Boolean

Includes hyperlinks in the keyboard focus chain. Enabled by default.

localContentCanAccessFileUrls

var localContentCanAccessFileUrls: Boolean

Allows locally loaded documents to access other local URLs. Enabled by default.

localContentCanAccessRemoteUrls

var localContentCanAccessRemoteUrls: Boolean

Allows locally loaded documents to ignore cross-origin rules so that they can access remote resources that would normally be blocked, because all remote resources are considered cross-origin for a local file. Remote access that would not be blocked by cross-origin rules is still possible when this setting is disabled. Note that disabling this setting does not stop XMLHttpRequests or media elements in local files from accessing remote content. Basically, it only stops some HTML subresources, such as scripts, and therefore disabling this setting is not a safety mechanism. Disabled by default.

localStorageEnabled

var localStorageEnabled: Boolean

Enables support for the HTML 5 local storage feature. Enabled by default.

pluginsEnabled

var pluginsEnabled: Boolean

Enables support for Pepper plugins, such as the Flash player. Disabled by default.

printElementBackgrounds

var printElementBackgrounds: Boolean

Turns on printing of CSS backgrounds when printing a web page. Enabled by default.

screenCaptureEnabled

var screenCaptureEnabled: Boolean

Enables screen capture in an application. Disabled by default.

scrollAnimatorEnabled

var scrollAnimatorEnabled: Boolean

Enables animated scrolling. Disabled by default.

spatialNavigationEnabled

var spatialNavigationEnabled: Boolean

Enables the Spatial Navigation feature, which means the ability to navigate between focusable elements, such as hyperlinks and form controls, on a web page by using the Left, Right, Up and Down arrow keys. For example, if a user presses the Right key, heuristics determine whether there is an element they might be trying to reach towards the right and which element they probably want. Disabled by default.

touchIconsEnabled

var touchIconsEnabled: Boolean

Enables support for touch icons and precomposed touch icons Disabled by default.

webGlEnabled

var webGlEnabled: Boolean

Enables support for HTML 5 WebGL. Enabled by default if available.

xssAuditingEnabled

var xssAuditingEnabled: Boolean

Monitors load requests for cross-site scripting attempts. Suspicious scripts are blocked and reported in the inspector's JavaScript console. Disabled by default, because it might negatively affect performance.

Functions

close

fun close(): Unit

Doesn't do anything, dispose the web view using this settings instead.

getFontFamily

fun getFontFamily(family: FontFamily): String

Gets the actual font family for the specified generic font family.

getFontSize

fun getFontSize(font: FontSize): Int

Gets the default font size.

resetAttribute

fun resetAttribute(attribute: WebAttribute): Unit

Resets the given attribute.

resetFontFamily

fun resetFontFamily(family: FontFamily): Unit

Resets the default font family.

resetFontSize

fun resetFontSize(font: FontSize): Unit

Resets the default font size.

setFontFamily

fun setFontFamily(whichFamily: FontFamily, family: String): Unit

Sets the actual font family for the specified generic font family.

setFontSize

fun setFontSize(font: FontSize, size: Int): Unit

Sets the default font size.

Inherited Functions

dispose

fun dispose(): Unit

Disposes this object, usually same action as close

Companion Object Properties

defaults

val defaults: SKryptonWebSettings

Settings instance that is used by default.