public enum WorkoutLocationType
- Object
- Enum<WorkoutLocationType>
- 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
UNKNOWN | Not specified; the platform decides. |
INDOOR | Indoors – distance comes from motion sensors rather than GPS. |
OUTDOOR | Outdoors – GPS is used where available. |
Methods
public static WorkoutLocationType[] values() | |
public static WorkoutLocationType valueOf(String name) |
Inherited methods
Enum constant details
UNKNOWN
UNKNOWNNot specified; the platform decides.
INDOOR
INDOORIndoors – distance comes from motion sensors rather than GPS.
OUTDOOR
OUTDOOROutdoors – GPS is used where available.
Method details
values
public static WorkoutLocationType[] values()valueOf
public static WorkoutLocationType valueOf(String name)