Class

CMAccelerometerData

A data sample from the device's three accelerometers.

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.

Topics

Accessing Accelerometer Data

var acceleration: CMAcceleration

The acceleration measured by the accelerometer.

Constants

struct CMAcceleration

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

Relationships

Inherits From

See Also

Accelerometers

Getting Raw Accelerometer Events

Learn how to retrieve data from the onboard accelerometers.

class CMRecordedAccelerometerData

A single piece of accelerometer data that was recorded by the device.

class CMSensorRecorder

The gathering and retrieval of accelerometer data from a device.

class CMSensorDataList

A list of the accelerometer data recorded by the system.