---
title: NIMotionActivityState
framework: nearbyinteraction
role: symbol
role_heading: Enumeration
path: nearbyinteraction/nimotionactivitystate
---

# NIMotionActivityState

Motion states for a nearby accessory.

## Declaration

```swift
enum NIMotionActivityState
```

## Overview

Overview Ranging accuracy improves when the framework knows whether the accessory is moving. Track your accessory’s motion using a method you choose and then use this enumeration to describe the motion among the available states. When the accessory’s motion state changes, inform the session by calling updateMotionState(_:forObjectWithToken:)).

## Topics

### Specifying the motion state

- [NIMotionActivityState.stationary](nearbyinteraction/nimotionactivitystate/stationary.md)
- [NIMotionActivityState.moving](nearbyinteraction/nimotionactivitystate/moving.md)
- [NIMotionActivityState.unknown](nearbyinteraction/nimotionactivitystate/unknown.md)

### Creating a motion state

- [init(rawValue:)](nearbyinteraction/nimotionactivitystate/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

### Third-party accessories

- [Implementing spatial interactions with third-party accessories](nearbyinteraction/implementing-spatial-interactions-with-third-party-accessories.md)
- [NINearbyAccessoryConfiguration](nearbyinteraction/ninearbyaccessoryconfiguration.md)
