@Deprecated public class Notification extends Object
Notifications instead.
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 and Description |
|---|
Notification(NotificationOptions notificationOptions,
NotificationListener notificationListener,
DesktopConnection desktopConnection,
AckListener listener)
Deprecated.
Notification constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
close(AckListener listener)
Deprecated.
Closes the notification
|
void |
sendMessage(org.json.JSONObject message,
AckListener listener)
Deprecated.
Sends a message to the notification
|
void |
sendMessage(String message,
AckListener listener)
Deprecated.
Sends a message to the notification
|
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 requestException - if notification fails to be createdNotificationListener,
AckListenerpublic void close(AckListener listener)
listener - AckListener for the requestAckListenerpublic void sendMessage(org.json.JSONObject message,
AckListener listener)
message - The JSON message to be sent to the notificationlistener - AckListener for the requestAckListenerpublic void sendMessage(String message, AckListener listener)
message - The String message to be sent to the notificationlistener - AckListener for the requestAckListenerCopyright © 2021. All rights reserved.