# WebViewPreferencesObject

The parameter passed to the preferences method.

Availability
8.0.0
9.2.0
Extends
Object

NOTE

This is an abstract type. Any object of this structure can be used where this type is used.

# Examples

# Usage of WebViewConfiguration with WebView in iOS

Creates a configuration object and use it as property of webview.

var config = Ti.UI.iOS.createWebViewConfiguration({ 
    allowsPictureInPictureMediaPlayback: true,
    preferences: { 
        minimumFontSize : 20,
    }, 
});

var webView = Ti.UI.createWebView({
    configuration: config,
    url: 'https://www.google.com'
});
var window = Ti.UI.createWindow();
window.add(webView);
window.open();

# Properties

# javaScriptCanOpenWindowsAutomatically

Availability
8.0.0
9.2.0
javaScriptCanOpenWindowsAutomatically :Boolean

A Boolean value indicating whether JavaScript can open windows without user interaction.

Default: false


# javaScriptEnabled

Availability
8.0.0
9.2.0
javaScriptEnabled :Boolean

A Boolean value indicating whether JavaScript is enabled.

Setting this property to false disables JavaScripts that are loaded or executed by the web page. This setting does not affect user scripts.

Default: true


# minimumFontSize

Availability
8.0.0
9.2.0
minimumFontSize :Number

The minimum font size in points.

Default: 0