Class

CMGyroData

A single measurement of the device’s rotation rate.

Declaration

class CMGyroData : CMLogItem

Overview

An application receives or samples CMGyroData objects at regular intervals after calling the startGyroUpdates(to:withHandler:) method or the startGyroUpdates() method of the CMMotionManager class.

Topics

Getting the Rotation Rate

var rotationRate: CMRotationRate

The rotation rate as measured by the device’s gyroscope.

struct CMRotationRate

The type of structures representing a measurement of rotation rate.

Relationships

Inherits From

Conforms To

See Also

Gyroscopes

Getting Raw Gyroscope Events

Retrieve data from the onboard gyroscopes.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software