Class: Toybox::ActivityMonitor::Info

Inherits:
Lang::Object show all

Overview

Note:

Unless otherwise indicated, Info data is calculated for the current day starting at midnight as provided by the device.

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.

Since:

  • 1.0.0

Instance Attribute Summary collapse

Method Summary

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Attribute Details

activeMinutesDayToybox::ActivityMonitor::ActiveMinutes

The number of active minutes for the current day.

Contains the moderate, vigorous, and total accumulated minutes for the day.

Returns:

Since:

  • 2.1.0

Supported Devices:

  • All CIQ 2.x devices


606
607
608
# File 'Monkeybrains.rb', line 606

def activeMinutesDay
  @activeMinutesDay
end

activeMinutesWeekToybox::ActivityMonitor::ActiveMinutes

The number of active minutes for the current week.

Contains the moderate, vigorous, and total accumulated minutes for the week.

Returns:

Since:

  • 2.1.0

Supported Devices:

  • All CIQ 2.x devices


597
598
599
# File 'Monkeybrains.rb', line 597

def activeMinutesWeek
  @activeMinutesWeek
end

activeMinutesWeekGoalToybox::Lang::Number

The value of the active minutes goal for the current week.

Returns:

Since:

  • 2.1.0

Supported Devices:

  • All CIQ 2.x devices


612
613
614
# File 'Monkeybrains.rb', line 612

def activeMinutesWeekGoal
  @activeMinutesWeekGoal
end

caloriesToybox::Lang::Number

The calories burned so far for the current day in kilocalories (kCal).

Returns:

Since:

  • 1.0.0


559
560
561
# File 'Monkeybrains.rb', line 559

def calories
  @calories
end

distanceToybox::Lang::Number

The distance since midnight for the current day in centimeters (cm).

Returns:

Since:

  • 1.0.0


564
565
566
# File 'Monkeybrains.rb', line 564

def distance
  @distance
end

floorsClimbedToybox::Lang::Number

The number of floors climbed for the current day.

Returns:

Since:

  • 2.1.0

Supported Devices:

  • All CIQ 2.x devices except Approach S60 and Forerunner 735XT


618
619
620
# File 'Monkeybrains.rb', line 618

def floorsClimbed
  @floorsClimbed
end

floorsClimbedGoalToybox::Lang::Number

The current floor climb goal.

Returns:

Since:

  • 2.1.0

Supported Devices:

  • All CIQ 2.x devices except Approach S60 and Forerunner 735XT


630
631
632
# File 'Monkeybrains.rb', line 630

def floorsClimbedGoal
  @floorsClimbedGoal
end

floorsDescendedToybox::Lang::Number

The number of floors descended for the current day.

Returns:

Since:

  • 2.1.0

Supported Devices:

  • All CIQ 2.x devices except Approach S60 and Forerunner 735XT


624
625
626
# File 'Monkeybrains.rb', line 624

def floorsDescended
  @floorsDescended
end

isSleepModeToybox::Lang::Boolean

Deprecated.

This member will be removed in Connect IQ 4.0.0

Determine whether the device is in sleep mode.

Returns:

Since:

  • 1.0.0


588
589
590
# File 'Monkeybrains.rb', line 588

def isSleepMode
  @isSleepMode
end

metersClimbedToybox::Lang::Float

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.

Returns:

Since:

  • 2.1.0

Supported Devices:

  • All CIQ 2.x devices except Approach S60 and Forerunner 735XT


639
640
641
# File 'Monkeybrains.rb', line 639

def metersClimbed
  @metersClimbed
end

metersDescendedToybox::Lang::Float

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.

Returns:

Since:

  • 2.1.0

Supported Devices:

  • All CIQ 2.x devices except Approach S60 and Forerunner 735XT


648
649
650
# File 'Monkeybrains.rb', line 648

def metersDescended
  @metersDescended
end

moveBarLevelToybox::Lang::Number

The current level of the move bar between MOVE_BAR_LEVEL_MIN and MOVE_BAR_LEVEL_MAX.

Returns:

Since:

  • 1.0.0


582
583
584
# File 'Monkeybrains.rb', line 582

def moveBarLevel
  @moveBarLevel
end

stepGoalToybox::Lang::Number

The step goal for the current day in number of steps.

Returns:

Since:

  • 1.0.0


575
576
577
# File 'Monkeybrains.rb', line 575

def stepGoal
  @stepGoal
end

stepsToybox::Lang::Number

The step count since midnight for the current day in number of steps.

Returns:

Since:

  • 1.0.0


570
571
572
# File 'Monkeybrains.rb', line 570

def steps
  @steps
end