Class

CMAccelerometerData

An instance of the CMAccelerometerData class represents an accelerometer event. It is a measurement of acceleration along the three spatial axes at a moment of time.

Overview

An application accesses CMAccelerometerData objects through the block handler specified as the last parameter of the startAccelerometerUpdates(to:withHandler:) method and through the accelerometerData property, both declared by the CMMotionManager class. The superclass of CMAccelerometerData, CMLogItem, defines a timestamp property that records when the acceleration measurement was taken.

Symbols

Accessing Accelerometer Data

var acceleration: CMAcceleration

The acceleration measured by the accelerometer.

Constants

CMAcceleration

The type of a structure containing 3-axis acceleration values.

Relationships

Inherits From