---
title: activityType
framework: healthkit
role: symbol
role_heading: Instance Property
path: healthkit/hkworkoutconfiguration/activitytype
---

# activityType

The workout session’s activity type.

## Declaration

```swift
var activityType: HKWorkoutActivityType { get set }
```

## Discussion

Discussion For a list of possible values, see HKWorkoutActivityType.

## See Also

### Session settings

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