Package | fin.desktop |
Class | public class Notification |
Inheritance | Notification flash.events.EventDispatcher |
Method | Defined By | ||
---|---|---|---|
Notification(options:NotificationOptions, callback:Function = null, errorCallback:Function = null)
Notification constructor
| Notification | ||
close(callback:Function = null, errorCallback:Function = null):void
Closes the notification
| Notification | ||
getInstances():Dictionary [static] | Notification | ||
sendMessage(message:Object, callback:Function = null, errorCallback:Function = null):void
Sends a message to the notification
| Notification | ||
sendMessageToApplication(message:Object, callback:Function = null, errorCallback:Function = null):void
Sends a message from the notification to the application that
created the notification. | Notification |
Notification | () | Constructor |
public function Notification(options:NotificationOptions, callback:Function = null, errorCallback:Function = null)
Notification constructor
Parametersoptions:NotificationOptions — The options of this notification
| |
callback:Function (default = null ) — A function that is called if successful in creating the notification
| |
errorCallback:Function (default = null ) — A function that is called if the method fails
|
CLICK: — [dispatched when user clicks on the notification]
| |
CLOSED: — [dispatched when notification is closed]
| |
DISMISSED: — [dispatched when dismissed by the user]
| |
ERROR: — [dispatched if there is an error]
| |
MESSAGE: — [dispatched when a message is received from the notification ]
| |
SHOW: — [dispatched notification is shown]
|
close | () | method |
public function close(callback:Function = null, errorCallback:Function = null):void
Closes the notification
Parameters
callback:Function (default = null ) — A function that is called if successful.
| |
errorCallback:Function (default = null ) — A function that is called if action failed.
|
getInstances | () | method |
public static function getInstances():Dictionary
ReturnsDictionary |
sendMessage | () | method |
public function sendMessage(message:Object, callback:Function = null, errorCallback:Function = null):void
Sends a message to the notification
Parameters
message:Object — The JSON message to be sent to the notification
| |
callback:Function (default = null ) — A function that is called if successful.
| |
errorCallback:Function (default = null ) — A function that is called if action failed.
|
sendMessageToApplication | () | method |
public function sendMessageToApplication(message:Object, callback:Function = null, errorCallback:Function = null):void
Sends a message from the notification to the application that created the notification. The message is handled by the notification's onMessage callback.
Parameters
message:Object — The JSON message to be sent to the application
| |
callback:Function (default = null ) — A function that is called if successful.
| |
errorCallback:Function (default = null ) — A function that is called if action failed.
|