Packagecom.myflashlab.air.extensions.richWebView.ios
Classpublic class WebSettings
InheritanceWebSettings Inheritance Object

Webview settings which can be set only before it is being added to the view using the _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.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
Injects the built-in JS code into the loaded HTML page which makes AIR/HTML communication possible.
WebSettings
  
The website data store to be used by the web view.
WebSettings
Property Detail
allowsAirPlayForMediaPlaybackproperty
allowsAirPlayForMediaPlayback:Boolean

A Boolean value indicating whether AirPlay is allowed. The default value is true.


Implementation
    public function get allowsAirPlayForMediaPlayback():Boolean
    public function set allowsAirPlayForMediaPlayback(value:Boolean):void
allowsInlineMediaPlaybackproperty 
allowsInlineMediaPlayback:Boolean

A Boolean value indicating whether HTML5 videos play inline (true) or use the native full-screen controller (false). The default value is false.


Implementation
    public function get allowsInlineMediaPlayback():Boolean
    public function set allowsInlineMediaPlayback(value:Boolean):void
allowsPictureInPictureMediaPlaybackproperty 
allowsPictureInPictureMediaPlayback:Boolean

A Boolean value indicating whether HTML5 videos may play picture-in-picture. The default value is true.


Implementation
    public function get allowsPictureInPictureMediaPlayback():Boolean
    public function set allowsPictureInPictureMediaPlayback(value:Boolean):void
applicationNameForUserAgentproperty 
applicationNameForUserAgent:String

The name of the application as used in the user agent string.


Implementation
    public function get applicationNameForUserAgent():String
    public function set applicationNameForUserAgent(value:String):void
dataDetectorTypesproperty 
dataDetectorTypes:int

The type of data detected.


Implementation
    public function get dataDetectorTypes():int
    public function set dataDetectorTypes(value:int):void

See also

ignoresViewportScaleLimitsproperty 
ignoresViewportScaleLimits:Boolean

A 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+


Implementation
    public function get ignoresViewportScaleLimits():Boolean
    public function set ignoresViewportScaleLimits(value:Boolean):void
mediaTypesRequiringUserActionForPlaybackproperty 
mediaTypesRequiringUserActionForPlayback:int

The types of audiovisual media which will require a user gesture to begin playing.


Implementation
    public function get mediaTypesRequiringUserActionForPlayback():int
    public function set mediaTypesRequiringUserActionForPlayback(value:int):void

See also

preferencesproperty 
preferences:Preferences  [read-only]

Returns a reference to the Preferences object.


Implementation
    public function get preferences():Preferences
suppressesIncrementalRenderingproperty 
suppressesIncrementalRendering:Boolean

A Boolean value indicating whether the web view suppresses content rendering until it is fully loaded into memory. The default value is false.


Implementation
    public function get suppressesIncrementalRendering():Boolean
    public function set suppressesIncrementalRendering(value:Boolean):void
Method Detail
addJavascriptInterface()method
public function addJavascriptInterface():void

Injects the built-in JS code into the loaded HTML page which makes AIR/HTML communication possible.

setDataStore()method 
public function setDataStore($type:int):WebsiteDataStore

The website data store to be used by the web view.

Parameters

$type:int — either WebsiteDataStore.DEFAULT or WebsiteDataStore.NONPERSISTENT.

Returns
WebsiteDataStore