public class Notification extends Object
| Constructor and Description |
|---|
Notification(NotificationOptions notificationOptions,
NotificationListener notificationListener,
DesktopConnection desktopConnection,
AckListener listener)
Notification constructor
|
| Modifier and Type | Method and Description |
|---|---|
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
|
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 © 2019. All rights reserved.