| Package | com.myflashlab.air.extensions.richWebView.ios |
| Class | public class WebSettings |
| Inheritance | WebSettings Object |
_webviewInstance.addView
method. You cannot create a new instance of this class as it's initailized automatically when a new instance
of a WebView class is created. You must set it's settings via _webviewInstance.settings or default
values will be used.
| Property | Defined By | ||
|---|---|---|---|
| allowsAirPlayForMediaPlayback : Boolean
A Boolean value indicating whether AirPlay is allowed. | WebSettings | ||
| allowsInlineMediaPlayback : Boolean
A Boolean value indicating whether HTML5 videos play inline (true) or use the native full-screen controller
(false). | WebSettings | ||
| allowsPictureInPictureMediaPlayback : Boolean
A Boolean value indicating whether HTML5 videos may play picture-in-picture. | WebSettings | ||
| applicationNameForUserAgent : String
The name of the application as used in the user agent string. | WebSettings | ||
| dataDetectorTypes : int
The type of data detected. | WebSettings | ||
| ignoresViewportScaleLimits : Boolean
A Boolean value indicating whether the WKWebView should always allow scaling of the web page, regardless of
author intent. | WebSettings | ||
| mediaTypesRequiringUserActionForPlayback : int
The types of audiovisual media which will require a user gesture to begin playing. | WebSettings | ||
| preferences : Preferences [read-only]
Returns a reference to the Preferences object. | WebSettings | ||
| suppressesIncrementalRendering : Boolean
A Boolean value indicating whether the web view suppresses content rendering until it is fully loaded into
memory. | WebSettings | ||
| Method | Defined By | ||
|---|---|---|---|
addJavascriptInterface():void
Injects the built-in JS code into the loaded HTML page which makes AIR/HTML communication possible. | WebSettings | ||
setDataStore($type:int):WebsiteDataStore
The website data store to be used by the web view. | WebSettings | ||
| allowsAirPlayForMediaPlayback | property |
allowsAirPlayForMediaPlayback:BooleanA Boolean value indicating whether AirPlay is allowed. The default value is true.
public function get allowsAirPlayForMediaPlayback():Boolean public function set allowsAirPlayForMediaPlayback(value:Boolean):void| allowsInlineMediaPlayback | property |
allowsInlineMediaPlayback:BooleanA Boolean value indicating whether HTML5 videos play inline (true) or use the native full-screen controller (false). The default value is false.
public function get allowsInlineMediaPlayback():Boolean public function set allowsInlineMediaPlayback(value:Boolean):void| allowsPictureInPictureMediaPlayback | property |
allowsPictureInPictureMediaPlayback:BooleanA Boolean value indicating whether HTML5 videos may play picture-in-picture. The default value is true.
public function get allowsPictureInPictureMediaPlayback():Boolean public function set allowsPictureInPictureMediaPlayback(value:Boolean):void| applicationNameForUserAgent | property |
applicationNameForUserAgent:StringThe name of the application as used in the user agent string.
public function get applicationNameForUserAgent():String public function set applicationNameForUserAgent(value:String):void| dataDetectorTypes | property |
dataDetectorTypes:intThe type of data detected.
public function get dataDetectorTypes():int public function set dataDetectorTypes(value:int):voidSee also
| ignoresViewportScaleLimits | property |
ignoresViewportScaleLimits:BooleanA Boolean value indicating whether the WKWebView should always allow scaling of the web page, regardless of author intent. This will override the user-scalable property. The default value is false. Works on iOS 10+
public function get ignoresViewportScaleLimits():Boolean public function set ignoresViewportScaleLimits(value:Boolean):void| mediaTypesRequiringUserActionForPlayback | property |
mediaTypesRequiringUserActionForPlayback:intThe types of audiovisual media which will require a user gesture to begin playing.
public function get mediaTypesRequiringUserActionForPlayback():int public function set mediaTypesRequiringUserActionForPlayback(value:int):voidSee also
| preferences | property |
preferences:Preferences [read-only]
Returns a reference to the Preferences object.
public function get preferences():Preferences| suppressesIncrementalRendering | property |
suppressesIncrementalRendering:BooleanA Boolean value indicating whether the web view suppresses content rendering until it is fully loaded into memory. The default value is false.
public function get suppressesIncrementalRendering():Boolean public function set suppressesIncrementalRendering(value:Boolean):void| addJavascriptInterface | () | method |
public function addJavascriptInterface():voidInjects the built-in JS code into the loaded HTML page which makes AIR/HTML communication possible.
| setDataStore | () | method |
public function setDataStore($type:int):WebsiteDataStoreThe website data store to be used by the web view.
Parameters
$type:int — either WebsiteDataStore.DEFAULT or WebsiteDataStore.NONPERSISTENT.
|
WebsiteDataStore — |