Class: Toybox.Notifications.NotificationMessage
- Inherits:
-
Toybox.Lang.Object
Overview
A NotificationMessage is received by the callback registered in registerForNotificationMessages().
Instance Member Summary collapse
-
action as Notifications.NotificationDataType or Null
The action payload associated with the selected action The value of the selected action from the
:actionsoption provided to showNotification(). -
data as Notifications.NotificationDataType or Null
The data payload associated with the notification The value of the
:dataoption provided to showNotification(). -
type as Notifications.NotificationMessageType
The notification message type.
Instance Method Summary collapse
-
initialize()
Constructor.
Instance Attribute Details
var action as Notifications.NotificationDataType or Null
The action payload associated with the selected action
The value of the selected action from the :actions option provided to showNotification(). This will be
null if the selected action had a null value, or if the notification was dismissed.
var data as Notifications.NotificationDataType or Null
The data payload associated with the notification
The value of the :data option provided to showNotification(). This will
be null if no value was provided or it was null.
var type as Notifications.NotificationMessageType
The notification message type
Instance Method Details
initialize()
Constructor