Class: $.ActivityTrackerApp

Inherits:
Application.AppBase show all

Overview

This application shows how to use the activity tracking APIs. When running in the simulator use ActivityMonitor > Set Activity Monitor to set the information. The information should update on the views. To set the wheelchair push information, turn on Wheelchair Mode in the simulator settings for supported devices

Instance Method Summary collapse

Instance Method Details

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

Get the first view for the app

Returns:

  • Initial view and input delegate

initialize()

Constructor

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

Handle application startup

Parameters:

  • state —

    Launch parameters

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

Handle app shutdown


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