Packagenet.flashplusplus.Snapdragon.NotificationCenter
Classpublic class SDNotificationManager
InheritanceSDNotificationManager Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined By
  applicationBadgeNumber : int
The number will be shown at the icon of the application.
SDNotificationManager
Public Methods
 MethodDefined By
  
SDNotificationManager(namespace:Namespace)
Constructor of SDNotificationManager singleton class.
SDNotificationManager
  
Function to add a local notification to the Notification Center.
SDNotificationManager
  
Cancels every notification.
SDNotificationManager
  
cancelLocalNotification(id:String):void
Cancels a notification by its id.
SDNotificationManager
  
getInstance(nameSpace:Namespace):SDNotificationManager
[static] Function to get SDNotificationManager instance.
SDNotificationManager
  
Gets a notification object from the Notification Center.
SDNotificationManager
Property Detail
applicationBadgeNumberproperty
applicationBadgeNumber:int

The number will be shown at the icon of the application. If it is 0, the the badge number will be hidden.


Implementation
    public function get applicationBadgeNumber():int
    public function set applicationBadgeNumber(value:int):void
Constructor Detail
SDNotificationManager()Constructor
public function SDNotificationManager(namespace:Namespace)

Constructor of SDNotificationManager singleton class. It cannot be used directly, use getNotificationManager property of Snapdragon instead.

Parameters
namespace:Namespace — is an internal namespace, so this method cannot be used.

Throws
error — when it is called.
Method Detail
addLocalNotification()method
public function addLocalNotification(notification:SDLocalNotification):void

Function to add a local notification to the Notification Center.

Parameters

notification:SDLocalNotification — is the notification to add, it should contains every needed information.

cancelAllLocalNotifications()method 
public function cancelAllLocalNotifications():void

Cancels every notification. All notifications get deleted from Notification center.

cancelLocalNotification()method 
public function cancelLocalNotification(id:String):void

Cancels a notification by its id. The canceled notification gets deleted from Notification center.

Parameters

id:String — is the identifier of the target notification.

getInstance()method 
public static function getInstance(nameSpace:Namespace):SDNotificationManager

Function to get SDNotificationManager instance. It is not meant to be used.

Parameters

nameSpace:Namespace — is an internal namespace, so this method cannot be used.

Returns
SDNotificationManager — the only instance of SDNotificationManager object.
getLocalNotification()method 
public function getLocalNotification(id:String):SDLocalNotification

Gets a notification object from the Notification Center. Canceled notifications cannot be retrieved.

Parameters

id:String — is the identifier of the target notification to retrieve.

Returns
SDLocalNotification