Class

HKWorkoutConfiguration

An object that contains configuration information about a workout session.

Declaration

@interface HKWorkoutConfiguration : NSObject

Overview

Like many HealthKit classes, the HKWorkoutConfiguration class is not extendable and should not be subclassed.

Topics

Session Settings

activityType

The workout session’s activity type.

locationType

The workout session’s location.

HKWorkoutSessionLocationType

A constant indicating whether the workout session takes place indoors or outdoors.

swimmingLocationType

The workout session’s swimming location.

HKWorkoutSwimmingLocationType

The possible locations for swimming.

lapLength

The length of the lap for a workout session.

Relationships

Inherits From

See Also

Sessions

Running Workout Sessions

Track a workout on Apple Watch.

HKWorkoutSession

A session that tracks the user’s workout on Apple Watch.

HKWorkoutSessionState

A workout session’s state.

HKLiveWorkoutBuilder

A builder object that constructs a workout incrementally based on live data from an active workout session.

HKLiveWorkoutDataSource

A data source that automatically provides live data from an active workout session.