Class: $.NotificationsApp

Inherits:
Application.AppBase show all

Overview

This app demonstrates how to use the Notifications API to show notifications to the user.

Instance Member Summary collapse

Instance Method Summary collapse

Instance Attribute Details

var _view as $.NotificationsView

Instance Method Details

getInitialView() as [ WatchUi.Views ] or [ WatchUi.Views, WatchUi.InputDelegates ]

Return the initial view for the app

Returns:

  • Array [NotificationsView, NotificationDelegate]

getServiceDelegate() as [ System.ServiceDelegate ]

Return the service delegate for the app

Returns:

  • Array [BackgroundDelegate]

initialize()

Constructor

onNotification(message as Notifications.NotificationMessage) as Void

Handle notification messages

Parameters:

  • message —

    Notification message to handle after a notification is displayed

onStart(state as Lang.Dictionary or Null) as Void

Handle app startup

Parameters:

  • state —

    Startup arguments


Generated Oct 20, 2026, 8:20:53 AM