Class: $.SensorTest

Inherits:
Application.AppBase show all

Overview

This app shows how to use sensors. It displays the current heart rate, along with a time series graph of the heart rate from the last 20 seconds.

Instance Method Summary collapse

Instance Method Details

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

Return the initial view for the app

Returns:

  • Array [View]

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 Jun 9, 2026, 8:46:00 AM