public enum WorkoutLocationType

  1. Object
  2. Enum<WorkoutLocationType>
  3. WorkoutLocationType

ImplementsComparable<WorkoutLocationType>

Whether a workout happens indoors or outdoors.

A label in this release: nothing here drives a live workout session, so it is recorded with the workout and read back rather than acted on. It is more than a label on a live session – on watchOS it selects whether GPS is used, which materially changes both the distance calculation and battery drain – so set it correctly now and the behaviour follows when live sessions arrive.

Enum constants

UNKNOWNNot specified; the platform decides.
INDOORIndoors – distance comes from motion sensors rather than GPS.
OUTDOOROutdoors – GPS is used where available.

Methods

public static WorkoutLocationType[] values()
public static WorkoutLocationType valueOf(String name)

Inherited methods

Enum constant details

UNKNOWN

UNKNOWN
Not specified; the platform decides.

INDOOR

INDOOR
Indoors – distance comes from motion sensors rather than GPS.

OUTDOOR

OUTDOOR
Outdoors – GPS is used where available.

Method details

values

public static WorkoutLocationType[] values()

valueOf

public static WorkoutLocationType valueOf(String name)