Packagecom.myflashlab.air.extensions.darkMode
Classpublic class DarkMode
InheritanceDarkMode Inheritance Object

The class determines the dark mode on the device.



Public Properties
 PropertyDefined By
  listener : EventDispatcher
[static] [read-only] Get access to the instance of the event dispatcher to listen on dark mode changes.
DarkMode
Public Methods
 MethodDefined By
  
dispose():void
[static] Call to dispose the extension
DarkMode
  
init():void
[static] To use this extension, you must first initialize it with this method.
DarkMode
  
isActivated():Boolean
[static] Check if the Dark Mode on iOS or the Dark Theme on Android is activated.
DarkMode
  
isAvailable():Boolean
[static] Check if the Dark Mode on iOS or the Dark Theme on Android is available.
DarkMode
Public Constants
 ConstantDefined By
  EXTENSION_ID : String = com.myflashlab.air.extensions.darkMode
[static]
DarkMode
  VERSION : String = 1.0.1
[static]
DarkMode
Property Detail
listenerproperty
listener:EventDispatcher  [read-only]

Get access to the instance of the event dispatcher to listen on dark mode changes.


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

Call to dispose the extension

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

To use this extension, you must first initialize it with this method.

isActivated()method 
public static function isActivated():Boolean

Check if the Dark Mode on iOS or the Dark Theme on Android is activated.

Returns
Boolean — Boolean
isAvailable()method 
public static function isAvailable():Boolean

Check if the Dark Mode on iOS or the Dark Theme on Android is available.

Returns
Boolean — Boolean
Constant Detail
EXTENSION_IDConstant
public static const EXTENSION_ID:String = com.myflashlab.air.extensions.darkMode

VERSIONConstant 
public static const VERSION:String = 1.0.1