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


17946
17947
17948
# File 'Monkeybrains.rb', line 17946

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


17941
17942
17943
# File 'Monkeybrains.rb', line 17941

def mode
  @mode
end

simulationSupportedToybox::Lang::Boolean

Flag for simulation training mode support

Returns:

Since:

  • 2.4.0


17956
17957
17958
# File 'Monkeybrains.rb', line 17956

def simulationSupported
  @simulationSupported
end

targetPowerSupportedToybox::Lang::Boolean

Flag for target power training mode support

Returns:

Since:

  • 2.4.0


17951
17952
17953
# File 'Monkeybrains.rb', line 17951

def targetPowerSupported
  @targetPowerSupported
end