Instance Property

activityType

The workout session’s activity type.

Declaration

var activityType: HKWorkoutActivityType { get set }

Discussion

For a list of possible values, see HKWorkoutActivityType.

See Also

Session Settings

var locationType: HKWorkoutSessionLocationType

The workout session’s location.

enum HKWorkoutSessionLocationType

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

var swimmingLocationType: HKWorkoutSwimmingLocationType

The workout session’s swimming location.

enum HKWorkoutSwimmingLocationType

The possible locations for swimming.

var lapLength: HKQuantity?

The length of the lap for a workout session.