WebSettings

Since: BlackBerry 10.0.0

#include <bb/cascades/WebSettings>

Settings for the WebView control.

Each WebView instance has an associated WebSettings instance, which can be referenced by reading the WebView settings property. You should never have any reason to create an instance of this class yourself. This class has to be a QObject derivative in order to be accessible from QML.


Overview

Public Functions Index

boolareCookiesEnabled () const
QVariantbackground () const
QVariantMapcustomHttpHeaders () const
intdefaultFontSize () const
booldefaultFontSizeFollowsSystemFontSize () const
QStringdefaultTextCodecName () const
doubledevicePixelRatio () const
boolisActiveTextEnabled () const
boolisBinaryFontDownloadingEnabled () const
boolisCredentialAutoFillEnabled () const
boolisFormAutoFillEnabled () const
boolisImageDownloadingEnabled () const
boolisJavaScriptEnabled () const
boolisTextAutosizingEnabled () const
boolisWebInspectorEnabled () const
boolisZoomToFitEnabled () const
intminimumFontSize () const
Q_SLOT voidresetActiveTextEnabled ()
Q_SLOT voidresetBackground ()
Q_SLOT voidresetBinaryFontDownloadingEnabled ()
Q_SLOT voidresetCookiesEnabled ()
Q_SLOT voidresetCredentialAutoFillEnabled ()
Q_SLOT voidresetCustomHttpHeaders ()
Q_SLOT voidresetDefaultFontSize ()
Q_SLOT voidresetDefaultFontSizeFollowsSystemFontSize ()
Q_SLOT voidresetDefaultTextCodecName ()
Q_SLOT voidresetDevicePixelRatio ()
Q_SLOT voidresetFormAutoFillEnabled ()
Q_SLOT voidresetImageDownloadingEnabled ()
Q_SLOT voidresetJavaScriptEnabled ()
Q_SLOT voidresetMinimumFontSize ()
Q_SLOT voidresetTextAutosizingEnabled ()
Q_SLOT voidresetUserStyleSheetLocation ()
Q_SLOT voidresetViewportArguments ()
Q_SLOT voidresetWebInspectorEnabled ()
Q_SLOT voidresetZoomToFitEnabled ()
Q_SLOT voidsetActiveTextEnabled (bool enabled)
Q_SLOT voidsetBackground (const bb::cascades::Paint &paint)
Q_SLOT voidsetBinaryFontDownloadingEnabled (bool enabled)
Q_SLOT voidsetCookiesEnabled (bool enabled)
Q_SLOT voidsetCredentialAutoFillEnabled (bool enabled)
Q_SLOT voidsetCustomHttpHeaders (const QVariantMap &httpHeaders)
Q_SLOT voidsetDefaultFontSize (int size)
Q_SLOT voidsetDefaultFontSizeFollowsSystemFontSize (bool follows)
Q_SLOT voidsetDefaultTextCodecName (const QString &codec)
Q_SLOT voidsetDevicePixelRatio (double ratio)
Q_SLOT voidsetFormAutoFillEnabled (bool enabled)
Q_SLOT voidsetImageDownloadingEnabled (bool enabled)
Q_SLOT voidsetJavaScriptEnabled (bool enabled)
Q_SLOT voidsetMinimumFontSize (int size)
Q_SLOT voidsetTextAutosizingEnabled (bool enabled)
Q_SLOT voidsetUserAgent (const QString &userAgent)
Q_SLOT voidsetUserStyleSheetLocation (const QUrl &location)
Q_SLOT voidsetViewportArguments (const QVariantMap &arguments)
Q_SLOT voidsetWebInspectorEnabled (bool enabled)
Q_SLOT voidsetZoomToFitEnabled (bool enabled)
QStringuserAgent () const
QUrluserStyleSheetLocation () const
QVariantMapviewportArguments () const

Signals Index

boolactiveTextEnabledChanged (bool enabled)
voidbackgroundChanged (const QVariant &newBackground)
voidbinaryFontDownloadingEnabledChanged (bool enabled)
voidcookiesEnabledChanged (bool enabled)
voidcredentialAutoFillEnabledChanged (bool enabled)
voidcustomHttpHeadersChanged (const QVariantMap &newCustomHttpHeaders)
voiddefaultFontSizeChanged (int newDefaultFontSize)
voiddefaultFontSizeFollowsSystemFontSizeChanged (bool newDefaultFontSizeFollowsSystemFontSize)
voiddefaultTextCodecNameChanged (const QString &codec)
voiddevicePixelRatioChanged (double newDevicePixelRatio)
voidformAutoFillEnabledChanged (bool enabled)
voidimageDownloadingEnabledChanged (bool enabled)
voidjavaScriptEnabledChanged (bool enabled)
voidminimumFontSizeChanged (int newMinimumFontSize)
voidtextAutosizingEnabledChanged (bool enabled)
voiduserAgentChanged (QString newUserAgent)
voiduserStyleSheetLocationChanged (QUrl newUserStyleSheetLocation)
voidviewportArgumentsChanged (const QVariantMap &newViewportArguments)
voidwebInspectorEnabledChanged (bool enabled)
voidzoomToFitEnabledChanged (bool enabled)

Properties

bool activeTextEnabled

Specifies whether a post-processor should run over loaded content to highlight any activeText segments and connect them to the Invocation Framework.

This processing takes place immediately after any document load completes; it is expensive.

The default is false.

Since:

BlackBerry 10.0.0

QVariant background

Sets the background color of the webpage.

If you wish to enable controls behind the WebView to appear through the webpage, you must set a non-opaque color.

The default is opaque white.

Since:

BlackBerry 10.0.0

bool binaryFontDownloadingEnabled

Specifies whether binary "WebFonts" should be loaded automatically.

The default is true.

Since:

BlackBerry 10.0.0

bool cookiesEnabled

Specifies whether network cookies should be enabled.

The default is true.

Since:

BlackBerry 10.0.0

bool credentialAutoFillEnabled

Specifies whether known credentials can be automatically submitted with HTTP requests.

The default is false, setting to this to true can reduce the amount of times the user is prompted for credentials.

Since:

BlackBerry 10.1.0

QVariantMap customHttpHeaders

Specifies custom HTTP headers that will be added to every outgoing network request.

Each key value pair in the map will be converted to UTF8 strings and added to outgoing requests as "<key>: <value>".

The following code example will add a "Pragma: no-cache" header to every outgoing request:
WebView {
    url: "http://myserver.mynetwork.net/anycontent.html"
    settings.customHttpHeaders: { "Pragma": "no-cache" }
}
The default is an empty map, i.e. no custom HTTP headers.
Since:

BlackBerry 10.0.0

int defaultFontSize

Specifies a default font size (in CSS pixels) to use when none is present in the HTML.

The default is 16.

bool defaultFontSizeFollowsSystemFontSize

Specifies that the default font size should follow the system font size.

Any value set using the defaultFontSize property will be ignored while this setting is true.

If your web content uses relative font sizes, like em or %, enabling this setting will allow the user to control the font size of your content using the system font size setting.

Please note that the textAutosizingEnabled feature already accounts for system font size, so it's not recommended to have both defaultFontSizeFollowsSystemFontSize and textAutosizingEnabled simultaneously set to true.

The default is false.

Since:

BlackBerry 10.0.0

QString defaultTextCodecName

Sets the default character encoding fallback for when no encoding information is available.

The default is ISO-8859-1.

Since:

BlackBerry 10.1.0

double devicePixelRatio

Specifies the default scaling factor.

The devicePixelRatio is the ratio between physical pixels and device-independent pixels (CSS pixels) on the device.

Increasing devicePixelRatio will zoom in the content and decreasing it will zoom out the content.

Beyond the devicePixelRatio, which scales the very CSS pixels of the web page, the web content can also be scaled due to zoomToFitEnabled being set to true. An "initial-scale" viewport argument present on the web page or injected using the viewport property can also influence scaling. The "initial-scale" is a multiplier applied in addition to the devicePixelRatio.

There are two approaches to scaling your web content.

Use the default devicePixelRatio to optimize for a mix of desktop and mobile web content. Typically, the default value is appropriate for loading existing web content from the world wide web. At the default devicePixelRatio, a font size of ~16 CSS pixels is pleasant to read. The user may adjust the system font size setting if they prefer bigger or smaller text, and the textAutosizingEnabled feature (enabled by default) takes the system font size setting into account when adjusting font size for improved readability. Enabling defaultFontSizeFollowsSystemFontSize is not recommended in this scenario.

Use a devicePixelRatio of 1.0 and tailor your web content to fit the standard screen width of BlackBerry 10 devices. Typically, a value of 1.0 is used when the web content is created specifically for BlackBerry 10 devices. At this devicePixelRatio, a font size of ~40 CSS pixels is pleasant to read, but you can enable defaultFontSizeFollowsSystemFontSize to have the default font size be adjusted to exactly match the system font size setting. When using a devicePixelRatio of 1.0, defaultFontSizeFollowsSystemFontSize is recommended over the textAutosizingEnabled feature. The text autosizing algorithm can't properly adjust font sizes without an accurate devicePixelRatio value.

Since:

BlackBerry 10.0.0

bool formAutoFillEnabled

Specifies whether known form fields can be automatically filled out on the user's behalf.

The default is false, setting to true can reduce the amount of input the user needs to type.

Since:

BlackBerry 10.1.0

bool imageDownloadingEnabled

Specifies whether images should be loaded automatically.

The default is true.

Since:

BlackBerry 10.0.0

bool javaScriptEnabled

Indicates whether the execution of JavaScript should be enabled in the main frame of the webpage.

The default is true.

Since:

BlackBerry 10.0.0

int minimumFontSize

Specifies a minimum font size in CSS pixels.

The default is 8.

Since:

BlackBerry 10.0.0

bool textAutosizingEnabled

Specifies whether text will have its font size automatically adjusted for improved readability.

Web content designed for desktop web browsers can contain text too small to be readable when the column of text is zoomed to fit the screen width. Text autosizing improves the situation by adjusting font size of text depending on column width and the screen's pixel density (DPI). If the user has changed the system font size setting, the effects of the text autosizing algorithm will be attenuated (if system font size is smaller than the default setting) or magnified (if the system font size is greater) to accommodate the user's setting.

This means that the text autosizing feature already accounts for system font size, so it's not recommended to have both defaultFontSizeFollowsSystemFontSize and textAutosizingEnabled simultaneously set to true.

To determine the scaling required, the text autosizing algorithm depends on the devicePixelRatio, so autosizing works best if devicePixelRatio is left at it's default value. Setting devicePixelRatio to 1.0 effectively disables autosizing.

The default is true.

Since:

BlackBerry 10.2.0

QString userAgent

Specifies a userAgent string to be used instead of the device default userAgent.

The default is the same as the userAgent employed by the BlackBerry Browser; it depends on the form factor and operating system version present on the device.

Since:

BlackBerry 10.0.0

QUrl userStyleSheetLocation

Specifies a default override CSS file location.

The default is an empty URL, which indicates that there is no user style sheet.

Since:

BlackBerry 10.0.0

QVariantMap viewport

Exposes all of the arguments of the HTML Meta Viewport Tag.

This map can be assigned a series of key value pairs from the following sets:

The following case-sensitive strings are accepted as keys: { "initial-scale", "minimum-scale", "maximum-scale", "width", "height", "user-scalable" }

The "initial-scale" is a multiplier applied in addition to the devicePixelRatio.

The following case-sensitive strings are accepted for all viewport values though not all of them are necessarily useful for each property: { "auto", "desktop-width", "device-width", "device-height" }

In addition, any non-negative floating point values are also acceptable.

To set a common type of meta viewport tag that requests that the content be laid out to the screen width in the current orientation, and zoomed 1:1, use this:

The default is an empty map which indicates no user specified viewport meta tag should be used.

WebView {
    id: webView
    url: "http://myserver.mynetwork.net/anycontent.html"
    settings.viewport: { "initial-scale" : 1.0 }
}
Since:

BlackBerry 10.0.0

bool webInspectorEnabled

Indicates whether the execution of JavaScript should be enabled in the main frame of the webpage.

The default is false. The WebInspector is specifically for debugging and should never be enabled in released software.

Since:

BlackBerry 10.0.0

bool zoomToFitEnabled

Specifies whether the content should be zoomed out to fit the screen upon loading.

The default is true.

Since:

BlackBerry 10.0.0

Public Functions

bool areCookiesEnabled ()

Gets whether or not cookies are enabled for the WebView.

Since:

BlackBerry 10.0.0

QVariant background ()

Gets the background of this WebView.

The QVariant returned wraps around a bb::cascades::Paint instance.

Since:

BlackBerry 10.0.0

QVariantMap customHttpHeaders ()

Gets a map of custom HTTP headers that will be added to every outgoing network request.

An empty map indicates no custom HTTP headers are in use.

Return:

A map where each key value pair corresponds to an HTTP header.

Since:

BlackBerry 10.0.0

int defaultFontSize ()

Gets the default font size for the WebView.

Since:

BlackBerry 10.0.0

bool defaultFontSizeFollowsSystemFontSize ()

Gets whether the default font size follows the system font size.

Since:

BlackBerry 10.0.0

QString defaultTextCodecName ()

Gets the default character encoding.

Since:

BlackBerry 10.1.0

double devicePixelRatio ()

Gets device pixel ratio.

Since:

BlackBerry 10.0.0

bool isActiveTextEnabled ()

Gets whether or not active text matching after loading is enabled for the WebView.

Since:

BlackBerry 10.0.0

bool isBinaryFontDownloadingEnabled ()

Gets whether or not WebFont downloading is enabled for the WebView.

Since:

BlackBerry 10.0.0

bool isCredentialAutoFillEnabled ()

Gets whether or not credentials are automatically filled if available.

Since:

BlackBerry 10.1.0

bool isFormAutoFillEnabled ()

Gets whether or not credentials are automatically filled if available.

Since:

BlackBerry 10.1.0

bool isImageDownloadingEnabled ()

Gets whether or not image downloading is enabled for the WebView.

Since:

BlackBerry 10.0.0

bool isJavaScriptEnabled ()

Gets whether or not JavaScript is enabled for the WebView.

Since:

BlackBerry 10.0.0

bool isTextAutosizingEnabled ()

Gets whether or not font sizes are automatically increased to make text legible.

Since:

BlackBerry 10.2.0

bool isWebInspectorEnabled ()

Gets whether or not the WebInspector is enabled for the WebView.

Since:

BlackBerry 10.0.0

bool isZoomToFitEnabled ()

Gets whether or not zoom to fit after loading is enabled for the WebView.

Any zooming done due to this setting is a multiplier applied in addition to the devicePixelRatio. Viewport arguments present on the web page or injected using the viewport property will override this setting and prevent zooming to fit.

Since:

BlackBerry 10.0.0

int minimumFontSize ()

Gets the minimum font size for the WebView.

Since:

BlackBerry 10.0.0

Q_SLOT void resetActiveTextEnabled ()

Resets active text matching to false.

Since:

BlackBerry 10.0.0

Q_SLOT void resetBackground ()

Resets the background to opaque white.

Since:

BlackBerry 10.0.0

Q_SLOT void resetBinaryFontDownloadingEnabled ()

Resets binary font downloading to true.

Since:

BlackBerry 10.0.0

Q_SLOT void resetCookiesEnabled ()

Resets cookies enabled to true.

Since:

BlackBerry 10.0.0

Q_SLOT void resetCredentialAutoFillEnabled ()

Resets credential auto fill to default.

Since:

BlackBerry 10.1.0

Q_SLOT void resetCustomHttpHeaders ()

Resets the custom HTTP headers to an empty map.

Since:

BlackBerry 10.0.0

Q_SLOT void resetDefaultFontSize ()

Resets the default font size to its default value of 16.

Since:

BlackBerry 10.0.0

Q_SLOT void resetDefaultFontSizeFollowsSystemFontSize ()

Resets whether the default font size follows the system font size to the default value of false.

Since:

BlackBerry 10.0.0

Q_SLOT void resetDefaultTextCodecName ()

Resets back to default encoding of ISO-8859-1.

Since:

BlackBerry 10.1.0

Q_SLOT void resetDevicePixelRatio ()

Resets device pixel ratio to default value.

Default value is the ratio between physical pixels and dips on the device.

Since:

BlackBerry 10.0.0

Q_SLOT void resetFormAutoFillEnabled ()

Resets credential auto fill to default.

Since:

BlackBerry 10.1.0

Q_SLOT void resetImageDownloadingEnabled ()

Resets imageDownloadingEnabled to its default value of true.

Since:

BlackBerry 10.0.0

Q_SLOT void resetJavaScriptEnabled ()

Resets javaScriptEnabled to its default value of true.

Since:

BlackBerry 10.0.0

Q_SLOT void resetMinimumFontSize ()

Resets the minimum font size to its default value of 8.

Since:

BlackBerry 10.0.0

Q_SLOT void resetTextAutosizingEnabled ()

Resets back to the default, which is to enable text autosizing.

Since:

BlackBerry 10.2.0

Q_SLOT void resetUserStyleSheetLocation ()

Resets the user style sheet to its default value of an empty URL.

Since:

BlackBerry 10.0.0

Q_SLOT void resetViewportArguments ()

Resets the user viewport arguments to an empty map.

Since:

BlackBerry 10.0.0

Q_SLOT void resetWebInspectorEnabled ()

Resets the web inspector to being disabled.

Since:

BlackBerry 10.0.0

Q_SLOT void resetZoomToFitEnabled ()

Resets zoom to fit enabled to true.

Since:

BlackBerry 10.0.0

Q_SLOT void setActiveTextEnabled (
  • boolenabled)

Sets activeText parsing enabled.

Parameters
enabled

Set true to enable active text matching, false to disable.

Since:

BlackBerry 10.0.0

Q_SLOT void setBackground (

Sets a bb::cascades::Paint& background for this WebView.

Presently only ColorPaint is supported. Other Paints will be ignored. A non-opaque color can be used to allow controls behind this WebView to be visible.

The default is opaque white.

Parameters
paint

A ColorPaint to be used as a background for this WebView.

Since:

BlackBerry 10.0.0

Q_SLOT void setBinaryFontDownloadingEnabled (
  • boolenabled)

Sets whether or not WebFonts should be downloaded.

Parameters
enabled

Set true to enable downloading of web fonts, false to disable.

Since:

BlackBerry 10.0.0

Q_SLOT void setCookiesEnabled (
  • boolenabled)

Sets whether or not cookies should be enabled.

Parameters
enabled

Set true to enable cookies, false to disable.

Since:

BlackBerry 10.0.0

Q_SLOT void setCredentialAutoFillEnabled (
  • boolenabled)

Sets whether or not credentials are automatically filled if available.

Parameters
enabled

Set true to enable credential auto fill.

Since:

BlackBerry 10.1.0

Q_SLOT void setCustomHttpHeaders (

Sets a map of custom HTTP headers to be added to every outgoing network request.

Parameters
httpHeaders

A QVariantMap where each key value pair corresponds to an HTTP header.

Since:

BlackBerry 10.0.0

Q_SLOT void setDefaultFontSize (
  • intsize)

Sets the default font size for the WebView.

Parameters
size

A default font size in CSS pixels.

Since:

BlackBerry 10.0.0

Q_SLOT void setDefaultFontSizeFollowsSystemFontSize (
  • boolfollows)

Sets whether the default font size follows the system font size.

Parameters
follows

Set true to enable this feature, false to disable.

Since:

BlackBerry 10.0.0

Q_SLOT void setDefaultTextCodecName (

Sets a default character encoding.

Parameters
codec

The encoding to be used when no other encoding information is available.

Since:

BlackBerry 10.1.0

Q_SLOT void setDevicePixelRatio (
  • doubleratio)

Sets device pixel ratio.

Parameters
ratio

A pixel ratio.

Since:

BlackBerry 10.0.0

Q_SLOT void setFormAutoFillEnabled (
  • boolenabled)

Sets whether or not credentials are automatically filled if available.

Parameters
enabled

Set true to enable credential auto fill.

Since:

BlackBerry 10.1.0

Q_SLOT void setImageDownloadingEnabled (
  • boolenabled)

Sets whether images will be downloaded by the WebView.

Parameters
enabled

Set true to enable image downloading, false to disable.

Since:

BlackBerry 10.0.0

Q_SLOT void setJavaScriptEnabled (
  • boolenabled)

Set whether JavaScript will be enabled on the WebView.

Parameters
enabled

Set true to enable JavaScript, false to disable.

Since:

BlackBerry 10.0.0

Q_SLOT void setMinimumFontSize (
  • intsize)

Sets the WebView minimum font size.

Parameters
size

A minimum font size in CSS pixels.

Since:

BlackBerry 10.0.0

Q_SLOT void setTextAutosizingEnabled (
  • boolenabled)

Sets whether or not font sizes are automatically increased to make text legible.

Parameters
enabled

Set true to enable text autosizing, false to disable.

Since:

BlackBerry 10.2.0

Q_SLOT void setUserAgent (

Sets a userAgent string to use instead of the default userAgent.

Parameters
userAgent

A new user agent string to use with outgoing HTTP requests.

Since:

BlackBerry 10.0.0

Q_SLOT void setUserStyleSheetLocation (
  • const QUrl &location)

Sets a location for a default CSS file.

Parameters
location

A URL to a file containing default CSS.

Since:

BlackBerry 10.0.0

Q_SLOT void setViewportArguments (

Sets a map of meta viewport arguments.

Parameters
arguments

A QVariantMap of viewport arguments to be used if none is specified in the HTML.

Since:

BlackBerry 10.0.0

Q_SLOT void setWebInspectorEnabled (
  • boolenabled)

Sets the WebInspector on or off.

Parameters
enabled

Set true to enable the WebInspector, false to disable.

Since:

BlackBerry 10.0.0

Q_SLOT void setZoomToFitEnabled (
  • boolenabled)

Sets zoom to fit behaviour for the WebView.

Parameters
enabled

Set true to enable zoom to fit on load, false to disable.

Since:

BlackBerry 10.0.0

QString userAgent ()

Gets the userAgent used by the WebView for outgoing HTTP Requests.

Since:

BlackBerry 10.0.0

QUrl userStyleSheetLocation ()

Gets the userStyleSheetLocation for the WebView.

An empty QUrl indicates no user stylesheet is in use.

Since:

BlackBerry 10.0.0

QVariantMap viewportArguments ()

Gets a map of user viewport arguments for the WebView.

An empty map indicates no user viewport arguments are in use.

Since:

BlackBerry 10.0.0

Signals

bool activeTextEnabledChanged (
  • boolenabled)

Emitted when active text matching enabled changes.

Parameters
enabled

Whether active text matching is enabled or disabled.

Since:

BlackBerry 10.0.0

void backgroundChanged (

Emitted when the background setting changes.

The newBackground QVariant provided wraps a bb::cascades::Paint instance.

Parameters
newBackground

The new background

Since:

BlackBerry 10.0.0

void binaryFontDownloadingEnabledChanged (
  • boolenabled)

Emitted when web font downloading enabled changed.

Parameters
enabled

Whether web font downloading is enabled or disabled.

Since:

BlackBerry 10.0.0

void cookiesEnabledChanged (
  • boolenabled)

Emitted when cookies enabled changed.

Parameters
enabled

Whether cookies are enabled or disabled.

Since:

BlackBerry 10.0.0

void credentialAutoFillEnabledChanged (
  • boolenabled)

Emitted when credential auto fill changes.

Parameters
enabled

Whether credential auto fill is enabled.

Since:

BlackBerry 10.1.0

void customHttpHeadersChanged (

Emitted when the custom HTTP headers change.

Parameters
newCustomHttpHeaders

The new custom HTTP headers.

Since:

BlackBerry 10.0.0

void defaultFontSizeChanged (
  • intnewDefaultFontSize)

Emitted when the default font size changes.

Parameters
newDefaultFontSize

The new default font size.

Since:

BlackBerry 10.0.0

void defaultFontSizeFollowsSystemFontSizeChanged (
  • boolnewDefaultFontSizeFollowsSystemFontSize)

Emitted when the default font size starts or stops following the system font size.

Parameters
newDefaultFontSizeFollowsSystemFontSize

The new value of the setting.

Since:

BlackBerry 10.0.0

void defaultTextCodecNameChanged (

Emitted when the default character encoding changes.

Parameters
codec

The new default character encoding.

Since:

BlackBerry 10.1.0

void devicePixelRatioChanged (
  • doublenewDevicePixelRatio)

Emitted when the device pixel ratio changes.

Parameters
newDevicePixelRatio

The new device pixel ratio.

Since:

BlackBerry 10.0.0

void formAutoFillEnabledChanged (
  • boolenabled)

Emitted when form auto fill changes.

Parameters
enabled

Whether form auto fill is enabled.

Since:

BlackBerry 10.1.0

void imageDownloadingEnabledChanged (
  • boolenabled)

Emitted when image downloading enabled changes.

Parameters
enabled

Whether image downloading is enabled or not.

Since:

BlackBerry 10.0.0

void javaScriptEnabledChanged (
  • boolenabled)

Emitted when JavaScript enabled changes.

Parameters
enabled

Whether JavaScript is enabled or not.

Since:

BlackBerry 10.0.0

void minimumFontSizeChanged (
  • intnewMinimumFontSize)

Emitted when the minimum font size changes.

Parameters
newMinimumFontSize

The new minimum font size.

Since:

BlackBerry 10.0.0

void textAutosizingEnabledChanged (
  • boolenabled)

Emitted when text autosizing changes.

Parameters
enabled

Whether text autosizing is enabled.

Since:

BlackBerry 10.2.0

void userAgentChanged (

Emitted when the user agent string changes.

Parameters
newUserAgent

The new user agent string.

Since:

BlackBerry 10.0.0

void userStyleSheetLocationChanged (
  • QUrlnewUserStyleSheetLocation)

Emitted when the user style sheet location changes.

Parameters
newUserStyleSheetLocation

The new user style sheet location.

Since:

BlackBerry 10.0.0

void viewportArgumentsChanged (

Emitted when the map of user viewport arguments changes.

Parameters
newViewportArguments

The new map of user viewport arguments.

Since:

BlackBerry 10.0.0

void webInspectorEnabledChanged (
  • boolenabled)

Emitted when web inspector enabled changes.

Parameters
enabled

Whether the web inspector is enabled or disabled.

Since:

BlackBerry 10.0.0

void zoomToFitEnabledChanged (
  • boolenabled)

Emitted when zoom to fit enabled changes.

Parameters
enabled

Whether zoom to fit is enabled or disabled.

Since:

BlackBerry 10.0.0

Last modified: 2014-03-13

comments powered by Disqus