Class

HKWorkoutType

The workout type identifies samples that store information about a workout.

Overview

The HKWorkoutType class is a concrete subclass of the HKObjectType class. To create a workout type instances, use the workoutType() convenience method.

All workouts use the same workout type instance.

Relationships

Inherits From

Conforms To

See Also

Samples

Using Workout Samples

Record a physical activity using workout samples.

class HKWorkout

A workout sample stores information about a single physical activity.

let HKWorkoutTypeIdentifier: String

The workout type identifier.

enum HKWorkoutActivityType

The type of activity performed during a workout.

class HKWorkoutEvent

An object representing an important event during a workout.