---
title: HKHeartRateMotionContext
framework: healthkit
role: symbol
role_heading: Enumeration
path: healthkit/hkheartratemotioncontext
---

# HKHeartRateMotionContext

Values that indicate the user’s level of activity when the heart rate sample was measured.

## Declaration

```swift
enum HKHeartRateMotionContext
```

## Topics

### Motion Contextes

- [HKHeartRateMotionContext.active](healthkit/hkheartratemotioncontext/active.md)
- [HKHeartRateMotionContext.notSet](healthkit/hkheartratemotioncontext/notset.md)
- [HKHeartRateMotionContext.sedentary](healthkit/hkheartratemotioncontext/sedentary.md)

### Initializers

- [init(rawValue:)](healthkit/hkheartratemotioncontext/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Related Documentation

- [heartRate](healthkit/hkquantitytypeidentifier/heartrate.md)
