Connect IQ > APIメモ > Toybox > ActivityMonitor

下位ページ
Contents

Module: Toybox::ActivityMonitor


The ActivityMonitor module contains the interface for Activity Monitoring data.

  • Since : 1.0.0

Defined Under Namespace

  • Classes : HeartRateIterator, HeartRateSample, History, Info

Constant Summary


  • MOVE_BAR_LEVEL_MAX = 5 : Since : 1.0.0
  • MOVE_BAR_LEVEL_MIN = 0 : Since : 1.0.0

  • INVALID_HR_SAMPLE = 255 : Indicates that the given heart rate sample is invalid. Since : 1.2.2
    • Supported Devices : fr235, fenix 3 HR

Instance Method Summary


   - (ActivityMonitor.HeartRateIterator) getHeartRateHistory(period, newestFirst)

   Retrieve the heart rate history for the given period, up to the last power cycle.
   - (Array) getHistory

   Use getHistory() to retrieve an array of ActivityMonitor.History objects.
   - (ActivityMonitor.Info) getInfo

   Use getInfo() to retrieve the current ActivityMonitor.Info.

Instance Method Details
  • (ActivityMonitor.HeartRateIterator) getHeartRateHistory(period, newestFirst)

Retrieve 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.

Parameters:

   period —

   If period is null, the entire available history is retrieved. If period is a Duration, then the history for the given Duration is retrieved. If period is a Number, then the last Number entries are retrieved.
   newestFirst —

   true to get the samples newest first, false to get them oldest first

Returns:

   (ActivityMonitor.HeartRateIterator) —

   an iterator for the heart rate history for the given period

Since:

   1.2.1

Supported Devices:

   fr235

   fenix 3 HR

  • (Array) getHistory

Use getHistory() to retrieve an array of ActivityMonitor.History objects

Returns:

   (Array) —

   of ActivityMonitor.History objects.

Since:

   1.0.0

  • (ActivityMonitor.Info) getInfo

Use getInfo() to retrieve the current ActivityMonitor.Info

Returns:

   (ActivityMonitor.Info) —

   object with current information.

Since:

   1.0.0

Generated on Thu Feb 18 15:00:15 2016 by yard 0.8.7.6 (ruby-2.2.1).
最終更新:2016年03月06日 23:43