Packagecom.myflashlab.air.extensions.statusbar
Classpublic class Statusbar
InheritanceStatusbar Inheritance Object



Public Properties
 PropertyDefined By
  height : Number
[static] [read-only] Indicates the current height of the Statusbar.
Statusbar
  listener : EventDispatcher
[static] [read-only]
Statusbar
Public Methods
 MethodDefined By
  
[static] allows the HomeIndicator to automatically hide.
Statusbar
  
changeStatusbarStyle($style:int, $haveAnimation:Boolean = true):void
[static] Change the Statusbar style with or without animation.
Statusbar
  
dispose():void
[static] Call this method to remove the native listener on watching the statusbar change frames and dispose the ANE.
Statusbar
  
hideStatusbar($animationType:int):void
[static] Hide the statusbar with the animation type of your choice.
Statusbar
  
init():void
[static]
Statusbar
  
showStatusbar($animationType:int):void
[static] Show the Statusbar with the animation type of your choise.
Statusbar
Public Constants
 ConstantDefined By
  ANIMATION_FADE : int = 1
[static]
Statusbar
  ANIMATION_NONE : int = 0
[static]
Statusbar
  ANIMATION_SLIDE : int = 2
[static]
Statusbar
  BAR_STYLE_DEFAULT : int = 1
[static]
Statusbar
  BAR_STYLE_LIGHT : int = 2
[static]
Statusbar
  EXTENSION_ID : String = com.myflashlab.air.extensions.statusbar
[static]
Statusbar
  VERSION : String = 1.1.1
[static]
Statusbar
Property Detail
heightproperty
height:Number  [read-only]

Indicates the current height of the Statusbar.


Implementation
    public static function get height():Number
listenerproperty 
listener:EventDispatcher  [read-only]


Implementation
    public static function get listener():EventDispatcher
Method Detail
allowHomeIndicatorAutoHide()method
public static function allowHomeIndicatorAutoHide():void

allows the HomeIndicator to automatically hide. This will not guarantee that it will be always hidden. Read iOS docs for moer information: https://developer.apple.com/documentation/uikit/uiviewcontroller/2887510-prefershomeindicatorautohidden?language=objc

Notice: You can call this method only once in your app lifetime. Other calls will be simply ignored.

changeStatusbarStyle()method 
public static function changeStatusbarStyle($style:int, $haveAnimation:Boolean = true):void

Change the Statusbar style with or without animation.

Parameters

$style:int
 
$haveAnimation:Boolean (default = true)

dispose()method 
public static function dispose():void

Call this method to remove the native listener on watching the statusbar change frames and dispose the ANE.

hideStatusbar()method 
public static function hideStatusbar($animationType:int):void

Hide the statusbar with the animation type of your choice.

Parameters

$animationType:int

init()method 
public static function init():void

showStatusbar()method 
public static function showStatusbar($animationType:int):void

Show the Statusbar with the animation type of your choise.

Parameters

$animationType:int

Constant Detail
ANIMATION_FADEConstant
public static const ANIMATION_FADE:int = 1

ANIMATION_NONEConstant 
public static const ANIMATION_NONE:int = 0

ANIMATION_SLIDEConstant 
public static const ANIMATION_SLIDE:int = 2

BAR_STYLE_DEFAULTConstant 
public static const BAR_STYLE_DEFAULT:int = 1

BAR_STYLE_LIGHTConstant 
public static const BAR_STYLE_LIGHT:int = 2

EXTENSION_IDConstant 
public static const EXTENSION_ID:String = com.myflashlab.air.extensions.statusbar

VERSIONConstant 
public static const VERSION:String = 1.1.1