Packagecom.myflashlab.air.extensions.webView
Classpublic class AndroidSettings
InheritanceAndroidSettings Inheritance Object

Deprecated! use com.myflashlab.air.extensions.richWebView.RichWebView instead.

This class holds all the settings you would need for setting up the embedded browser feature on the Android side

See also

com.myflashlab.air.extensions.webView.RichWebView.initEmbeddedBrowser()


Public Properties
 PropertyDefined By
  closeBtnIcon : String
[write-only] Sets the Close button icon for the custom tab.
AndroidSettings
  defaultShareMenuItem : Boolean
[write-only] Adds a default share item to the menu.
AndroidSettings
  enableUrlBarHiding : Boolean
[write-only] Enables the url bar to hide as the user scrolls down on the page.
AndroidSettings
  isWeakActivity : Boolean
[write-only] If set to true, the embedded browser will close automatically if you hit the home button or if you bring another activity/app over your app.
AndroidSettings
  mayLaunchUrl : String
AndroidSettings
  secondaryToolbarColor : String
[write-only] Sets the color of the secondary toolbar.
AndroidSettings
  showTitle : Boolean
[write-only] Sets whether the title should be shown in the custom tab.
AndroidSettings
  toolbarColor : String
[write-only] Sets the toolbar color.
AndroidSettings
Public Methods
 MethodDefined By
  
actionButton($actionBtnIcon:String, $actionBtnDescription:String):void
Sets the action button that is displayed in the Toolbar
AndroidSettings
  
addMenuItem($label:String, $isThisTheFirstItem:Boolean = false):void
Adds a menu item.
AndroidSettings
Property Detail
closeBtnIconproperty
closeBtnIcon:String  [write-only]

Sets the Close button icon for the custom tab.

You must include the resource image file inside the ANE before it can be displayed in the embedded browser. To do that, you may use our free Resource Manager Tool https://github.com/myflashlab/Resource-Manager-AIR


Implementation
    public function set closeBtnIcon(value:String):void
defaultShareMenuItemproperty 
defaultShareMenuItem:Boolean  [write-only]

Adds a default share item to the menu.


Implementation
    public function set defaultShareMenuItem(value:Boolean):void
enableUrlBarHidingproperty 
enableUrlBarHiding:Boolean  [write-only]

Enables the url bar to hide as the user scrolls down on the page.


Implementation
    public function set enableUrlBarHiding(value:Boolean):void
isWeakActivityproperty 
isWeakActivity:Boolean  [write-only]

If set to true, the embedded browser will close automatically if you hit the home button or if you bring another activity/app over your app.

By default, this is set to false


Implementation
    public function set isWeakActivity(value:Boolean):void
mayLaunchUrlproperty 
mayLaunchUrl:String


Implementation
    public function get mayLaunchUrl():String
    public function set mayLaunchUrl(value:String):void
secondaryToolbarColorproperty 
secondaryToolbarColor:String  [write-only]

Sets the color of the secondary toolbar.


Implementation
    public function set secondaryToolbarColor(value:String):void
showTitleproperty 
showTitle:Boolean  [write-only]

Sets whether the title should be shown in the custom tab.


Implementation
    public function set showTitle(value:Boolean):void
toolbarColorproperty 
toolbarColor:String  [write-only]

Sets the toolbar color.


Implementation
    public function set toolbarColor(value:String):void
Method Detail
actionButton()method
public function actionButton($actionBtnIcon:String, $actionBtnDescription:String):void

Sets the action button that is displayed in the Toolbar

Parameters

$actionBtnIcon:String
 
$actionBtnDescription:String

addMenuItem()method 
public function addMenuItem($label:String, $isThisTheFirstItem:Boolean = false):void

Adds a menu item. You can't add more than 5 items to the list.

Parameters

$label:String
 
$isThisTheFirstItem:Boolean (default = false) — Set this parameter to true to cleanup older items available in the list.