---
title: HKHeartRateMotionContext.active
framework: healthkit
role: symbol
role_heading: Case
path: healthkit/hkheartratemotioncontext/active
---

# HKHeartRateMotionContext.active

A value indicating that the user was in motion during the heart rate sample.

## Declaration

```swift
case active
```

## See Also

### Motion Contextes

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