Instance Property

workoutEvents

An array of workout event objects.

Declaration

@property(readonly, copy) NSArray<HKWorkoutEvent *> *workoutEvents;

Discussion

This array specifies when the user has paused and resumed the workout activity. This method calculates the workout’s duration based on the amount of active time between the provided start and end dates. For more information on workout events, see HKWorkoutEvent.

See Also

Getting Property Data

duration

The workout’s duration.

totalDistance

The total distance traveled during the workout.

totalEnergyBurned

The total active energy burned during the workout.

workoutActivityType

The type of activity performed during the workout.

totalFlightsClimbed

The total number of flights of stairs climbed during the workout.

totalSwimmingStrokeCount

The total stroke count for the workout.