Packagecom.myflashlab.air.extensions.localNotifi
Classpublic class NotificationEvents
InheritanceNotificationEvents Inheritance flash.events.Event



Public Properties
 PropertyDefined By
  isAppActive : Boolean
[read-only] Indicates if the app was in forground or not when the notification was fired.
NotificationEvents
  notificationId : int
[read-only] Indicates the notification id.
NotificationEvents
  payload : String
[read-only] Indicates the payload String data you set when adjusting the notification
NotificationEvents
Public Methods
 MethodDefined By
  
NotificationEvents($type:String, $notificationId:int = -1, $payload:String = null, $isAppActive:Boolean = false)
NotificationEvents
Public Constants
 ConstantDefined By
  NOTIFICATION_INVOKED : String = onLocalNotificationTouched
[static]
NotificationEvents
Property Detail
isAppActiveproperty
isAppActive:Boolean  [read-only]

Indicates if the app was in forground or not when the notification was fired.


Implementation
    public function get isAppActive():Boolean
notificationIdproperty 
notificationId:int  [read-only]

Indicates the notification id. This is useful when you want to re-configure your notification. All you have to do is to adjust a new notification with the same notification id. The other approach would be to unset the old notification and then adjust another one.


Implementation
    public function get notificationId():int
payloadproperty 
payload:String  [read-only]

Indicates the payload String data you set when adjusting the notification


Implementation
    public function get payload():String
Constructor Detail
NotificationEvents()Constructor
public function NotificationEvents($type:String, $notificationId:int = -1, $payload:String = null, $isAppActive:Boolean = false)



Parameters
$type:String
 
$notificationId:int (default = -1)
 
$payload:String (default = null)
 
$isAppActive:Boolean (default = false)
Constant Detail
NOTIFICATION_INVOKEDConstant
public static const NOTIFICATION_INVOKED:String = onLocalNotificationTouched