public class NotificationActionEvent extends NotificationEvent
Constructor and Description |
---|
NotificationActionEvent(org.json.JSONObject eventPayload) |
Modifier and Type | Method and Description |
---|---|
NotificationActionResult |
getResult()
Get application-defined metadata that this event is passing back to the application.
|
NotificationSource |
getSource()
Notifications can be created by both desktop applications and as push
notifications from a notification feed.
|
String |
getTrigger()
Indicates what triggered this action.
|
getNotificationOptions, getType
get, getArray, getBoolean, getBooleanValue, getBooleanValue, getDoubleValue, getDoubleValue, getInteger, getIntegerValue, getJson, getJsonBean, getJsonBean, getJsonBeanList, getJsonCopy, getJsonValue, getList, getRectangle, getString, put, setArray, setBoolean, setInteger, setJsonArray, setJsonBean, setLong, setRectangle, setString, toString
public NotificationActionEvent(org.json.JSONObject eventPayload)
public String getTrigger()
"close": The notification was closed, either by user interaction, programmatically by an application, or by the notification expiring.
"control": The user interacted with one of the controls within the notification. This currently means a button click, but other control types will be added in future releases.
"expire": The notification expired.
"programmatic": The action was triggered programmatically by an application. Not currently supported - will be implemented in a future release.
"select": The user clicked the body of the notification itself. Any clicks of the notification that don't hit a control or the close button will fire an event with the 'select' action trigger.
public NotificationSource getSource()
public NotificationActionResult getResult()
Copyright © 2022. All rights reserved.