Class: Toybox.Activity.WorkoutStepInfo

Overview

The WorkoutStepInfo class contains information about the current workout.

This information can be retrieved with the getCurrentWorkoutStep() or getNextWorkoutStep() methods.

Since:

API Level 3.2.0

Supported Devices:

Instance Member Summary collapse

Instance Attribute Details

var intensity as Activity.WorkoutIntensity

The intensity of the step

Since:

API Level 3.2.0

Returns:

var name as Lang.String

The name of the current step

Since:

API Level 3.2.0

Returns:

var notes as Lang.String

The notes for the current step

Since:

API Level 3.2.0

Returns:

var sport as Activity.Sport

The sport for the workout step

Since:

API Level 3.2.0

Returns:

var step as Activity.WorkoutStep or Activity.WorkoutIntervalStep

Duration and target information about the step

Since:

API Level 3.2.0

Returns:

var subSport as Activity.SubSport or Null

The subsport for the workout step. Currently only valid for breathing and swim workouts

Since:

API Level 3.2.0

Returns:


Generated Dec 11, 2024, 8:58:42 AM