Class: Toybox::AntPlus::FitnessEquipmentMode

Inherits:
Lang::Object show all

Overview

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

Examples:

using Toybox.AntPlus;
using Toybox.System;

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

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

Since:

  • 2.4.0

Fitness Equipment Training Setting Type collapse

Method Summary

Methods inherited from Lang::Object

equals, hashCode, method, toString, weak

Instance Attribute Details

basicResistanceSupportedToybox::Lang::Boolean

Flag for basic resistance training mode support

Returns:

Since:

  • 2.4.0


16217
16218
16219
# File 'Monkeybrains.rb', line 16217

def basicResistanceSupported
  @basicResistanceSupported
end

modeToybox::Lang::Integer

The current training mode of the fitness equipment

Returns:

  • (Toybox::Lang::Integer)

    The TRAINER_MODE_* enum value

Since:

  • 2.4.0


16212
16213
16214
# File 'Monkeybrains.rb', line 16212

def mode
  @mode
end

simulationSupportedToybox::Lang::Boolean

Flag for simulation training mode support

Returns:

Since:

  • 2.4.0


16227
16228
16229
# File 'Monkeybrains.rb', line 16227

def simulationSupported
  @simulationSupported
end

targetPowerSupportedToybox::Lang::Boolean

Flag for target power training mode support

Returns:

Since:

  • 2.4.0


16222
16223
16224
# File 'Monkeybrains.rb', line 16222

def targetPowerSupported
  @targetPowerSupported
end