qnx.notification.NotificationManager

NotificationManager

Properties | Methods


Packageqnx.notification
Classpublic class NotificationManager
InheritanceNotificationManager Inheritance flash.events.EventDispatcher

The NotificationManager is used to send Notifications to the system.

See each method for more details on how to send notificiations.



Class information:
BlackBerry 10 Version:   10.0.0



Public Properties

 PropertyDefined By
  notificationManager : NotificationManager
[static] [read-only] Gets the single instance of the NotificationManager.
NotificationManager

Public Methods

 MethodDefined By
  
NotificationManager(enforcer:SingletonEnforcer)
The constructor for this class should not be called directly.
NotificationManager
  
cancelNotification(itemId:String = null):void
The cancelNotification() method is used to send Cancel Notifications to the system.
NotificationManager
  
deleteNotification(itemId:String = null):void
The deleteNotification() method is used to send Delete Notifications to the system.
NotificationManager
  
notifyNotification(notification:Notification):void
The notifyNotification() method is used to send Notify Notifications to the system.
NotificationManager

Property Detail

notificationManager


notificationManager:NotificationManager  [read-only]

Gets the single instance of the NotificationManager.


Implementation

public static function get notificationManager():NotificationManager

Constructor Detail

NotificationManager()


public function NotificationManager(enforcer:SingletonEnforcer)

The constructor for this class should not be called directly. Use NotificationManager.notificationManager to get a reference to the Notification Manager.

Parameters

enforcer:SingletonEnforcer

See also

notificationManager

Method Detail

cancelNotification()


public function cancelNotification(itemId:String = null):void

The cancelNotification() method is used to send Cancel Notifications to the system.

When the notification has been successfully sent a NotificationEvent.CANCEL event will be dispatched. If there was an error sending the notification, a ErrorEvent.ERROR event will be dispatched.

Parameters

itemId:String (default = null) — The Item Id of the Notification you wish to cancel. By default this is null which will result in cancelling all notifications associated with the application.

deleteNotification()


public function deleteNotification(itemId:String = null):void

The deleteNotification() method is used to send Delete Notifications to the system.

When the notification has been successfully sent a NotificationEvent.DELETE event will be dispatched. If there was an error sending the notification, a ErrorEvent.ERROR event will be dispatched.

Parameters

itemId:String (default = null) — The Item Id of the Notification you wish to delete. By default this is null which will result in deleting all notifications associated with the application.

notifyNotification()


public function notifyNotification(notification:Notification):void

The notifyNotification() method is used to send Notify Notifications to the system.

When the notification has been successfully sent a NotificationEvent.NOTIFY event will be dispatched. If there was an error sending the notification, a ErrorEvent.ERROR event will be dispatched.

Parameters

notification:Notification — A Notification object used to send the notification.





comments powered by Disqus