HealthKit Sort Descriptors

Identifiers for sorting results.

Topics

Sample Sort Identifiers

HKSampleSortIdentifierStartDate

A constant for sorting samples based on their start date.

HKSampleSortIdentifierEndDate

A constant for sorting samples based on their end date.

Workout Sort Identifiers

HKWorkoutSortIdentifierDuration

A constant for sorting workouts based on their duration.

HKWorkoutSortIdentifierTotalDistance

A constant for sorting workouts based on their total distance.

HKWorkoutSortIdentifierTotalFlightsClimbed

A constant for sorting workouts based on the number of flights of steps climbed.

HKWorkoutSortIdentifierTotalEnergyBurned

A constant for sorting workouts based on the total energy burned.

HKWorkoutSortIdentifierTotalSwimmingStrokeCount

A constant for sorting workouts based on the number of swimming strokes.

See Also

Initializing Sample Queries

HKObjectQueryNoLimit

A value indicating that the query returns all the matching samples in the HealthKit store.