Package | net.flashplusplus.Snapdragon.NotificationCenter |
Class | public class SDNotificationManager |
Inheritance | SDNotificationManager flash.events.EventDispatcher |
Property | Defined By | ||
---|---|---|---|
applicationBadgeNumber : int
The number will be shown at the icon of the application. | SDNotificationManager |
Method | Defined By | ||
---|---|---|---|
SDNotificationManager(namespace:Namespace)
Constructor of SDNotificationManager singleton class. | SDNotificationManager | ||
addLocalNotification(notification:SDLocalNotification):void
Function to add a local notification to the Notification Center. | SDNotificationManager | ||
cancelAllLocalNotifications():void
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 | ||
getLocalNotification(id:String):SDLocalNotification
Gets a notification object from the Notification Center. | SDNotificationManager |
applicationBadgeNumber | property |
applicationBadgeNumber:int
The number will be shown at the icon of the application. If it is 0, the the badge number will be hidden.
public function get applicationBadgeNumber():int
public function set applicationBadgeNumber(value:int):void
SDNotificationManager | () | Constructor |
public function SDNotificationManager(namespace:Namespace)
Constructor of SDNotificationManager singleton class. It cannot be used directly, use getNotificationManager property of Snapdragon instead.
Parametersnamespace:Namespace — is an internal namespace, so this method cannot be used.
|
error — when it is called.
|
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.
|
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.
|
SDLocalNotification |