---
title: HKWorkoutConfiguration
framework: healthkit
role: symbol
role_heading: Class
path: healthkit/hkworkoutconfiguration
---

# HKWorkoutConfiguration

An object that contains configuration information about a workout session.

## Declaration

```swift
class HKWorkoutConfiguration
```

## Overview

Overview As with many HealthKit classes, don’t subclass the HKWorkoutConfiguration class.

## Topics

### Session settings

- [activityType](healthkit/hkworkoutconfiguration/activitytype.md)
- [locationType](healthkit/hkworkoutconfiguration/locationtype.md)
- [HKWorkoutSessionLocationType](healthkit/hkworkoutsessionlocationtype.md)
- [swimmingLocationType](healthkit/hkworkoutconfiguration/swimminglocationtype.md)
- [HKWorkoutSwimmingLocationType](healthkit/hkworkoutswimminglocationtype.md)
- [lapLength](healthkit/hkworkoutconfiguration/laplength.md)

### Initializers

- [init(coder:)](healthkit/hkworkoutconfiguration/init(coder:).md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSCoding](foundation/nscoding.md)
- [NSCopying](foundation/nscopying.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [NSSecureCoding](foundation/nssecurecoding.md)

## See Also

### Sessions

- [Running workout sessions](healthkit/running-workout-sessions.md)
- [Build a workout app for Apple Watch](healthkit/build-a-workout-app-for-apple-watch.md)
- [Building a multidevice workout app](healthkit/building-a-multidevice-workout-app.md)
- [Building a workout app for iPhone and iPad](healthkit/building-a-workout-app-for-iphone-and-ipad.md)
- [HKWorkoutSession](healthkit/hkworkoutsession.md)
- [HKWorkoutSessionState](healthkit/hkworkoutsessionstate.md)
- [HKLiveWorkoutBuilder](healthkit/hkliveworkoutbuilder.md)
- [HKLiveWorkoutBuilderDelegate](healthkit/hkliveworkoutbuilderdelegate.md)
- [HKLiveWorkoutDataSource](healthkit/hkliveworkoutdatasource.md)
