Instance Method

startGyroUpdates()

Starts gyroscope updates without a handler.

Declaration

func startGyroUpdates()

Discussion

You can get the latest gyroscope data through the gyroData property. You must call stopGyroUpdates() when you no longer want your app to process gyroscope updates.

See Also

Managing Gyroscope Updates

var gyroUpdateInterval: TimeInterval

The interval, in seconds, for providing gyroscope updates to the block handler.

func startGyroUpdates(to: OperationQueue, withHandler: CMGyroHandler)

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

func stopGyroUpdates()

Stops gyroscope updates.

var gyroData: CMGyroData?

The latest sample of gyroscope data.

typealias CMGyroHandler

The type of block callback for handling gyroscope data.