---
title: "startDeviceMotionUpdates(to:withHandler:)"
framework: coremotion
role: symbol
role_heading: Instance Method
path: "coremotion/cmheadphonemotionmanager/startdevicemotionupdates(to:withhandler:)"
---

# startDeviceMotionUpdates(to:withHandler:)

Starts device-motion updates with a handler.

## Declaration

```swift
func startDeviceMotionUpdates(to queue: OperationQueue, withHandler handler: @escaping CMHeadphoneMotionManager.DeviceMotionHandler)
```

## Parameters

- `queue`: The queue for handling updates.
- `handler`: The handler that receives the updates.

## See Also

### Starting and Stopping Updates

- [startDeviceMotionUpdates()](coremotion/cmheadphonemotionmanager/startdevicemotionupdates().md)
- [startConnectionStatusUpdates()](coremotion/cmheadphonemotionmanager/startconnectionstatusupdates().md)
- [stopDeviceMotionUpdates()](coremotion/cmheadphonemotionmanager/stopdevicemotionupdates().md)
- [stopConnectionStatusUpdates()](coremotion/cmheadphonemotionmanager/stopconnectionstatusupdates().md)
