Enum WorkoutActivityType

java.lang.Object
java.lang.Enum<WorkoutActivityType>
com.codename1.health.WorkoutActivityType
All Implemented Interfaces:
Comparable<WorkoutActivityType>

public enum WorkoutActivityType extends Enum<WorkoutActivityType>

What kind of exercise a workout records.

A deliberate subset

HealthKit defines around eighty activity types and Health Connect around ninety, and the two lists do not line up. An exhaustive mapping table would be large, unverifiable, and wrong in ways nobody would notice until a user's yoga session showed up as pilates.

So this enum covers the common activities honestly and offers OTHER plus WorkoutSample.getPlatformCode() as the escape hatch for apps that need exact platform fidelity. Reading getPlatformCode() gives you the raw HKWorkoutActivityType or ExerciseSessionRecord constant the platform actually recorded.