Workout Metadata Keys

Constants that can be used to add metadata to workouts.

Topics

Workout Type

HKMetadataKeyWorkoutBrandName

The brand name of a particular workout.

HKMetadataKeyGroupFitness

A key that indicates whether the workout was performed as part of a group fitness class.

HKMetadataKeyIndoorWorkout

A key that indicates whether the workout was performed indoors.

HKMetadataKeyCoachedWorkout

A key that indicates whether the workout was performed with a coach or personal trainer.

Speed

HKMetadataKeyAverageSpeed

A key that indicates the average speed during a workout.

HKMetadataKeyMaximumSpeed

A key that indicates the maximum speed during a workout.

Intensity

HKMetadataKeyAverageMETs

A key that indicates the average Metabolic Equivalent of Task (METs) during a workout.

Swimming

HKMetadataKeySwimmingLocationType

A key that indicates the location for a swimming workout.

HKMetadataKeySwimmingStrokeStyle

A key that indicates the predominant stroke style for a lap of swimming.

HKMetadataKeyLapLength

A key that indicates the length of a lap during a workout.

Skiing and Snowboarding

HKMetadataKeyAlpineSlopeGrade

A key that indicates the percent slope of a ski run.

HKMetadataKeyElevationAscended

A key that indicates the cumulative elevation ascended during a workout.

HKMetadataKeyElevationDescended

A key that indicates the cumulative elevation descended during a workout.

GymKit

HKMetadataKeyFitnessMachineDuration

The workout duration displayed by a connected GymKit fitness machine.

HKMetadataKeyCrossTrainerDistance

The workout distance displayed by a connected GymKit cross-trainer machine.

HKMetadataKeyIndoorBikeDistance

The workout distance displayed by a connected GymKit exercise bike.