Class: $.AnalogWatch

Inherits:
Application.AppBase show all

Overview

This app demonstrates a basic analog watch face. It also shows a new page when a goal is met and has an app settings menu.

Instance Method Summary collapse

Instance Method Details

getGoalView(goal as Application.GoalType) as [ WatchUi.View ] or Null

This method runs when a goal is triggered and the goal view is started.

Parameters:

  • goal —

    The goal type that triggered

Returns:

  • The view to push

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

Return the initial view for the app

Returns:

  • Array Pair [View, Delegate] or Array [View]

getSettingsView() as [ WatchUi.Views ] or [ WatchUi.Views, WatchUi.InputDelegates ] or Null

Return the settings view and delegate

Returns:

  • Array Pair [View, Delegate]

initialize()

Constructor

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

Handle app startup

Parameters:

  • state —

    Startup arguments

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

Handle app shutdown

Parameters:

  • state —

    Shutdown arguments


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