---
title: "startGyroUpdates(to:withHandler:)"
framework: coremotion
role: symbol
role_heading: Instance Method
path: "coremotion/cmmotionmanager/startgyroupdates(to:withhandler:)"
---

# startGyroUpdates(to:withHandler:)

Starts gyroscope updates on an operation queue and with a specified handler.

## Declaration

```swift
func startGyroUpdates(to queue: OperationQueue, withHandler handler: @escaping CMGyroHandler)
```

## Parameters

- `queue`: An operation queue provided by the caller. Because the processed events might arrive at a high rate, using the main operation queue is not recommended.
- `handler`: A block that is invoked with each update to handle new gyroscope data. The block must conform to the doc://com.apple.coremotion/documentation/CoreMotion/CMGyroHandler type.

## Mentioned in

Getting raw gyroscope events

## Discussion

Discussion You must call stopGyroUpdates() when you no longer want your app to process gyroscope updates.

## See Also

### Managing Gyroscope Updates

- [gyroUpdateInterval](coremotion/cmmotionmanager/gyroupdateinterval.md)
- [startGyroUpdates()](coremotion/cmmotionmanager/startgyroupdates().md)
- [stopGyroUpdates()](coremotion/cmmotionmanager/stopgyroupdates().md)
- [gyroData](coremotion/cmmotionmanager/gyrodata.md)
- [CMGyroHandler](coremotion/cmgyrohandler.md)
