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
,
AckListener
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
Copyright © 2017. All rights reserved.