Class: Toybox.ActivityMonitor.History

Overview

A class containing information about the user's activity history.

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:

API Level 1.0.0

Instance Member Summary collapse

Instance Attribute Details

var activeMinutes as ActivityMonitor.ActiveMinutes or Null

Number of active minutes.

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

Since:

API Level 2.1.0

Supported Devices:

Returns:

var calories as Lang.Number or Null

The calories for the day in kilocalories (kCal).

Since:

API Level 1.0.0

Supported Devices:

Returns:

var distance as Lang.Number or Null

The distance for the day in centimeters (cm).

Since:

API Level 1.0.0

Returns:

var floorsClimbed as Lang.Number or Null

The number of floors climbed for the day.

Since:

API Level 2.1.0

Supported Devices:

Returns:

var floorsClimbedGoal as Lang.Number or Null

Floors climbed goal for the day.

Since:

API Level 2.1.0

Supported Devices:

Returns:

var floorsDescended as Lang.Number or Null

The number of floors descended for the day.

Since:

API Level 2.1.0

Supported Devices:

Returns:

var pushDistance as Lang.Number or Null

The wheelchair push distance for the day in centimeters (cm).

Since:

API Level 4.2.3

Supported Devices:

Returns:

var pushGoal as Lang.Number or Null

The wheelchair push goal for the day in number of pushes.

Since:

API Level 4.2.3

Supported Devices:

Returns:

var pushes as Lang.Number or Null

Wheelchair push count for the day in number of pushes.

Since:

API Level 4.2.3

Supported Devices:

Returns:

var startOfDay as Time.Moment or Null

A Moment object representing the start time of the day recorded by this History object

Since:

API Level 1.0.0

Returns:

var stepGoal as Lang.Number or Null

The step goal for the day in number of steps.

Since:

API Level 1.0.0

Returns:

var steps as Lang.Number or Null

The step count for the day in number of steps.

Since:

API Level 1.0.0

Returns:


Generated Apr 17, 2024 9:40:36 AM