| Package | com.myflashlab.air.extensions.webView |
| Class | public class AndroidSettings |
| Inheritance | AndroidSettings Object |
Deprecated! use com.myflashlab.air.extensions.richWebView.RichWebView instead.
See also
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| closeBtnIcon | property |
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
public function set closeBtnIcon(value:String):void| defaultShareMenuItem | property |
defaultShareMenuItem:Boolean [write-only] Adds a default share item to the menu.
public function set defaultShareMenuItem(value:Boolean):void| enableUrlBarHiding | property |
enableUrlBarHiding:Boolean [write-only] Enables the url bar to hide as the user scrolls down on the page.
public function set enableUrlBarHiding(value:Boolean):void| isWeakActivity | property |
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
public function set isWeakActivity(value:Boolean):void| mayLaunchUrl | property |
mayLaunchUrl:String public function get mayLaunchUrl():String public function set mayLaunchUrl(value:String):void| secondaryToolbarColor | property |
secondaryToolbarColor:String [write-only] Sets the color of the secondary toolbar.
public function set secondaryToolbarColor(value:String):void| showTitle | property |
showTitle:Boolean [write-only] Sets whether the title should be shown in the custom tab.
public function set showTitle(value:Boolean):void| toolbarColor | property |
toolbarColor:String [write-only] Sets the toolbar color.
public function set toolbarColor(value:String):void| actionButton | () | method |
public function actionButton($actionBtnIcon:String, $actionBtnDescription:String):voidSets the action button that is displayed in the Toolbar
Parameters
$actionBtnIcon:String | |
$actionBtnDescription:String |
| addMenuItem | () | method |
public function addMenuItem($label:String, $isThisTheFirstItem:Boolean = false):voidAdds 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.
|