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



case unknown

It is not known whether the workout session is taking place indoors or outdoors.

case indoor

The workout session is indoors.

case outdoor

The workout session is outdoors.

See Also

Session Settings

var activityType: HKWorkoutActivityType

The workout session’s activity type.

var locationType: HKWorkoutSessionLocationType

The workout session’s location.

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.