Class: Toybox.AntPlus.FitnessEquipmentMode

Overview

Represents a fitness equipment training mode Fields may return null so you should null check values before using them.

Example:

using Toybox.AntPlus;
using Toybox.System;

// Assumes AntPlus.FitnessEquipment.getTrainerMode(); already called
var mode = FitnessEquipmentMode.mode;

System.println("Current training mode is: " + mode);

Since:

API Level 2.4.0

Supported Devices:

Instance Member Summary collapse

Instance Attribute Details

var basicResistanceSupported as Lang.Boolean or Null

Flag for basic resistance training mode support

Since:

API Level 2.4.0

Returns:

  • Lang.Boolean

    true if basic resistance is supported, false otherwise

var mode as AntPlus.TrainerMode or Null

The current training mode of the fitness equipment

Since:

API Level 2.4.0

Returns:

var simulationSupported as Lang.Boolean or Null

Flag for simulation training mode support

Since:

API Level 2.4.0

Returns:

  • Lang.Boolean

    true if simulation is supported, false otherwise

var targetPowerSupported as Lang.Boolean or Null

Flag for target power training mode support

Since:

API Level 2.4.0

Returns:

  • Lang.Boolean

    true if target power is supported, false otherwise


Generated Jun 6, 2024 10:31:51 AM