Class

CMAccelerometerData

A data sample from the device's three accelerometers.

Declaration

class CMAccelerometerData : CMLogItem

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.

struct CMAcceleration

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

Relationships

Inherits From

Conforms To

See Also

Accelerometers

Getting Raw Accelerometer Events

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.

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