Class: $.AnalogWatch
- Inherits:
-
Application.AppBase
-
Application.AppBase
-
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
-
getGoalView(goal as Application.GoalType) as [ WatchUi.View ] or Null
This method runs when a goal is triggered and the goal view is started.
-
getInitialView() as [ WatchUi.Views ] or [ WatchUi.Views, WatchUi.InputDelegates ]
Return the initial view for the app.
-
getSettingsView() as [ WatchUi.Views ] or [ WatchUi.Views, WatchUi.InputDelegates ] or Null
Return the settings view and delegate.
-
initialize()
Constructor.
-
onStart(state as Lang.Dictionary or Null) as Void
Handle app startup.
-
onStop(state as Lang.Dictionary or Null) as Void
Handle app shutdown.
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.
getInitialView() as [ WatchUi.Views ] or [ WatchUi.Views, WatchUi.InputDelegates ]
Return the initial view for the app
getSettingsView() as [ WatchUi.Views ] or [ WatchUi.Views, WatchUi.InputDelegates ] or Null
Return the settings view and delegate
initialize()
Constructor
onStart(state as Lang.Dictionary or Null) as Void
Handle app startup
onStop(state as Lang.Dictionary or Null) as Void
Handle app shutdown