Class: Toybox.Notifications.NotificationMessage

Overview

A NotificationMessage is received by the callback registered in registerForNotificationMessages().

Since:

API Level 5.1.0

Instance Member Summary collapse

Instance Method Summary collapse

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.

Since:

API Level 5.1.0

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.

Since:

API Level 5.1.0

var type as Notifications.NotificationMessageType

The notification message type

Since:

API Level 5.1.0

Instance Method Details

initialize()

Constructor

Since:

API Level 5.1.0


Generated Mar 4, 2025, 4:09:53 PM