Module: Toybox.ActivityMonitor
Overview
The ActivityMonitor module contains the interface for Activity Monitoring data.
Classes Under Namespace
Classes: ActiveMinutes, HeartRateIterator, HeartRateSample, History, Info
Constant Summary
Constant Variables
Type | Name | Value | Since | Description |
---|---|---|---|---|
Type | INVALID_HR_SAMPLE | 255 | API Level 1.2.2 |
Indicates that the given heart rate sample is invalid. |
Type | MOVE_BAR_LEVEL_MAX | 5 | API Level 1.0.0 |
The maximum level of the move bar |
Type | MOVE_BAR_LEVEL_MIN | 0 | API Level 1.0.0 |
The minimum level of the move bar |
Instance Method Summary collapse
-
getHeartRateHistory(period as Time.Duration or Lang.Number or Null, newestFirst as Lang.Boolean) as ActivityMonitor.HeartRateIterator
Get the heart rate history for the given period, up to the last power cycle.
-
getHistory() as Lang.Array<ActivityMonitor.History>
Get an Array of ActivityMonitor.History objects.
-
getInfo() as ActivityMonitor.Info
Get the current ActivityMonitor.Info.
Instance Method Details
getHeartRateHistory(period as Time.Duration or Lang.Number or Null, newestFirst as Lang.Boolean) as ActivityMonitor.HeartRateIterator
Get the heart rate history for the given period, up to the last power cycle.
This function always returns the most recent heart rate samples. The time between each HeartRateSample in the iterator may be device dependent.
getHistory() as Lang.Array<ActivityMonitor.History>
Get an Array of ActivityMonitor.History objects
getInfo() as ActivityMonitor.Info
Get the current ActivityMonitor.Info