Class: Toybox.ActivityMonitor.Info
- Inherits:
-
Toybox.Lang.Object
Overview
The ActivityMonitor.Info contains information about the user's current activity status.
The fields in this class may return null
. It is recommended to null
check a value before using it. If the value is not available, an
error indicating that the symbol was not found will be thrown.
Unless otherwise indicated, Info data is calculated for the current day starting at midnight as provided by the device.
Instance Member Summary collapse
-
activeMinutesDay as ActivityMonitor.ActiveMinutes or Null
The number of active minutes for the current day.
-
activeMinutesWeek as ActivityMonitor.ActiveMinutes or Null
The number of active minutes for the current week.
-
activeMinutesWeekGoal as Lang.Number or Null
The value of the active minutes goal for the current week.
-
calories as Lang.Number or Null
The calories burned so far for the current day in kilocalories (kCal).
-
distance as Lang.Number or Null
The distance since midnight for the current day in centimeters (cm).
-
floorsClimbed as Lang.Number or Null
The number of floors climbed for the current day.
-
floorsClimbedGoal as Lang.Number or Null
The current floor climb goal.
-
floorsDescended as Lang.Number or Null
The number of floors descended for the current day.
-
isSleepMode as Lang.Boolean or Null
deprecated
Determine whether the device is in sleep mode.
-
metersClimbed as Lang.Float or Null
The vertical distance of floors climbed in meters (m).
-
metersDescended as Lang.Float or Null
The vertical distance of floors descended in meters (m).
-
moveBarLevel as Lang.Number or Null
The current level of the move bar between MOVE_BAR_LEVEL_MIN and MOVE_BAR_LEVEL_MAX.
-
pushDistance as Lang.Number or Null
The wheelchair push distance for the day in centimeters (cm).
-
pushGoal as Lang.Number or Null
The wheelchair push goal for the day in number of pushes.
-
pushes as Lang.Number or Null
Wheelchair push count for the day in number of pushes.
-
respirationRate as Lang.Number or Null
Current respiration rate for the user, in breaths per minute Value may be
null
. -
stepGoal as Lang.Number or Null
The step goal for the current day in number of steps.
-
steps as Lang.Number or Null
The step count since midnight for the current day in number of steps.
-
stressScore as Lang.Number or Null
The current stress score The stress score calculated using a rolling average of the last 30 seconds of stress level readings.
-
timeToRecovery as Lang.Number or Null
Time to recovery from the last activity, in hours Value may be
null
.
Instance Attribute Details
var activeMinutesDay as ActivityMonitor.ActiveMinutes or Null
The number of active minutes for the current day.
Contains the moderate, vigorous, and total accumulated minutes for
the day.
Value may be null
.
var activeMinutesWeek as ActivityMonitor.ActiveMinutes or Null
The number of active minutes for the current week.
Contains the moderate, vigorous, and total accumulated minutes for
the week.
Value may be null
.
var activeMinutesWeekGoal as Lang.Number or Null
The value of the active minutes goal for the current week.
Value may be null
.
var calories as Lang.Number or Null
The calories burned so far for the current day in kilocalories
(kCal).
Value may be null
.
var distance as Lang.Number or Null
The distance since midnight for the current day in centimeters (cm).
Value may be null
.
var floorsClimbed as Lang.Number or Null
The number of floors climbed for the current day.
Value may be null
.
var floorsClimbedGoal as Lang.Number or Null
The current floor climb goal.
Value may be null
.
var floorsDescended as Lang.Number or Null
The number of floors descended for the current day.
Value may be null
.
var isSleepMode as Lang.Boolean or Null
This value may be removed after System 4.
Determine whether the device is in sleep mode.
Value may be null
.
var metersClimbed as Lang.Float or Null
The vertical distance of floors climbed in meters (m).
This only counts the vertical distance associated with the floors
climbed metric recorded by the device.
Value may be null
.
var metersDescended as Lang.Float or Null
The vertical distance of floors descended in meters (m).
This only counts the vertical distance associated with the floors
descended metric recorded by the device.
Value may be null
.
var moveBarLevel as Lang.Number or Null
The current level of the move bar between
MOVE_BAR_LEVEL_MIN and
MOVE_BAR_LEVEL_MAX.
Value may be null
.
var pushDistance as Lang.Number or Null
The wheelchair push distance for the day in centimeters (cm).
var pushGoal as Lang.Number or Null
The wheelchair push goal for the day in number of pushes.
var pushes as Lang.Number or Null
Wheelchair push count for the day in number of pushes.
var respirationRate as Lang.Number or Null
Current respiration rate for the user, in breaths per minute
Value may be null
.
var stepGoal as Lang.Number or Null
The step goal for the current day in number of steps.
Value may be null
.
var steps as Lang.Number or Null
The step count since midnight for the current day in number of
steps.
Value may be null
.
var stressScore as Lang.Number or Null
The current stress score
The stress score calculated using a rolling average of the last
30 seconds of stress level readings. Value may be null
.
var timeToRecovery as Lang.Number or Null
Time to recovery from the last activity, in hours
Value may be null
.