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


17919
17920
17921
# File 'Monkeybrains.rb', line 17919

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


17914
17915
17916
# File 'Monkeybrains.rb', line 17914

def mode
  @mode
end

simulationSupportedToybox::Lang::Boolean

Flag for simulation training mode support

Returns:

Since:

  • 2.4.0


17929
17930
17931
# File 'Monkeybrains.rb', line 17929

def simulationSupported
  @simulationSupported
end

targetPowerSupportedToybox::Lang::Boolean

Flag for target power training mode support

Returns:

Since:

  • 2.4.0


17924
17925
17926
# File 'Monkeybrains.rb', line 17924

def targetPowerSupported
  @targetPowerSupported
end