---
title: "startDeviceMotionUpdates(handler:)"
framework: coremotion
role: symbol
role_heading: Instance Method
path: "coremotion/cmbatchedsensormanager/startdevicemotionupdates(handler:)"
---

# startDeviceMotionUpdates(handler:)

## Declaration

```swift
func startDeviceMotionUpdates(handler: @escaping ([CMDeviceMotion]?, (any Error)?) -> Void)
```

## See Also

### Collecting device-motion data

- [startDeviceMotionUpdates()](coremotion/cmbatchedsensormanager/startdevicemotionupdates().md)
- [stopDeviceMotionUpdates()](coremotion/cmbatchedsensormanager/stopdevicemotionupdates().md)
- [deviceMotionBatch](coremotion/cmbatchedsensormanager/devicemotionbatch.md)
- [deviceMotionUpdates()](coremotion/cmbatchedsensormanager/devicemotionupdates().md)
- [CMBatchedSensorManager.DeviceMotionUpdates](coremotion/cmbatchedsensormanager/devicemotionupdates.md)
- [isDeviceMotionActive](coremotion/cmbatchedsensormanager/isdevicemotionactive.md)
