|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.openfin.desktop.Notification
public class Notification
A Notification represents a window on App Desktop which is shown briefly to the user on the bottom-right corner of the primary monitor. A notification is typically used to alert the user of some important event which requires his or her attention. Multiple notifications can be generated at once but will queue if more than 5 are already displayed. Notifications can be dismissed by dragging them to the right with the mouse and can communicate securely with their invoking applications.
| Constructor Summary | |
|---|---|
Notification(NotificationOptions notificationOptions,
NotificationListener notificationListener,
DesktopConnection desktopConnection,
AckListener listener)
Notification constructor |
|
| Method Summary | |
|---|---|
void |
close(AckListener listener)
Closes the notification |
void |
sendMessage(org.json.JSONObject message,
AckListener listener)
Sends a message to the notification |
void |
sendMessage(String message,
AckListener listener)
Sends a message to the notification |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Notification(NotificationOptions notificationOptions,
NotificationListener notificationListener,
DesktopConnection desktopConnection,
AckListener listener)
throws Exception
notificationOptions - The options of this notificationdesktopConnection - Connection to DesktopnotificationListener - NotificationListener for the notificationlistener - AckListener for the request
ExceptionNotificationListener,
AckListener| Method Detail |
|---|
public void close(AckListener listener)
listener - AckListener for the requestAckListener
public void sendMessage(org.json.JSONObject message,
AckListener listener)
message - The JSON message to be sent to the notificationlistener - AckListener for the requestAckListener
public void sendMessage(String message,
AckListener listener)
message - The String message to be sent to the notificationlistener - AckListener for the requestAckListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||