<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 9.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKUserMotionContext",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@E@HKUserMotionContext"
  },
  "title" : "HKUserMotionContext"
}
-->

# HKUserMotionContext

The type of motion performed during the sample.

```
enum HKUserMotionContext
```

## Topics

### Motion contexts

[`case notSet`](/documentation/HealthKit/HKUserMotionContext/notSet)

The person’s motion was not specified.

[`case active`](/documentation/HealthKit/HKUserMotionContext/active)

The person was active during the sample.

[`case stationary`](/documentation/HealthKit/HKUserMotionContext/stationary)

The person was stationary during the sample.

### Initializers

[`init?(rawValue: Int)`](/documentation/HealthKit/HKUserMotionContext/init(rawValue:))

## Relationships

### Conforms To

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Equatable`](/documentation/Swift/Equatable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`RawRepresentable`](/documentation/Swift/RawRepresentable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)