You are reading 12.8.0. See this page in 13.4.1.
Titanium.UI.iOS.WebViewConfiguration
Extends Titanium.Proxy
A collection of properties used to initialize a web view.
Use the Titanium.UI.iOS.createWebViewConfiguration method to create and use as a parameter of Titanium.UI.WebView.configuration. Using this you can determine how soon a webpage is rendered, how media playback is handled, the granularity of items that the user can select, and many other options. This property can only be set when creating the webview and will be ignored when set afterwards.
See the example section "Usage of WebViewConfiguration with WebView in iOS". Information on additional available preferences can be derived from the original WebKit sources: WKPreferences.mm
Properties 10
allowsAirPlayMediaPlayback
BooleanA Boolean value indicating whether AirPlay is allowed.
Default: true
allowsInlineMediaPlayback
BooleanA Boolean value indicating whether HTML5 videos play inline or use the native full-screen controller.
You must set this property to play inline video. Set this property to true to play videos inline. Set this property to false to use the native full-screen controller. When adding a video element to a HTML document on the iPhone, you must also include the playsinline attribute. The default value for iPhone is false and the default value for iPad is true.
Default: For iPhone false and for iPad true.
A Boolean value indicating whether HTML5 videos can play picture-in-picture.
Default: true
Inherited from Titanium.Proxy
The name of the API that this proxy corresponds to.
Inherited from Titanium.Proxy
Indicates if the proxy will bubble an event to its parent.
Default: true
Determines which media types require a user gesture to begin playing.
Default: Titanium.UI.iOS.AUDIOVISUAL_MEDIA_TYPE_NONE
preferences
WebViewPreferencesObjectThe preference settings to be used by the web view.
The process pool from which to obtain the Web Content process of view.
When a web view is initialized, either a new web content process is created for it from the specified pool or an existing process in that pool is used.
selectionGranularity
NumberThe level of granularity with which the user can interactively select content in the web view.
Default: Titanium.UI.iOS.SELECTION_GRANULARITY_DYNAMIC
A Boolean value indicating whether the web view suppresses content rendering until it is fully loaded into memory.
Default: false
Methods 4
Inherited from Titanium.Proxy
Adds the specified callback as an event listener for the named event.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| callback | Callback<Titanium.Event> | Callback function to invoke when the event is fired. 4 fields
|
applyProperties
since 3.0.0Inherited from Titanium.Proxy
Applies the properties to the proxy.
| Parameters | Type | Description |
|---|---|---|
| props | Dictionary | A dictionary of properties to apply. |
Inherited from Titanium.Proxy
Fires a synthesized event to any registered listeners.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| event? | Dictionary | A dictionary of keys and values to add to the Titanium.Event object sent to the listeners. |
Inherited from Titanium.Proxy
Removes the specified callback as an event listener for the named event.
| Parameters | Type | Description |
|---|---|---|
| name | String | Name of the event. |
| callback | Callback<Titanium.Event> | Callback function to remove. Must be the same function passed to 4 fields
|