Instance Property

accelerometerData

The latest sample of accelerometer data.

Declaration

@property(readonly) CMAccelerometerData *accelerometerData;

Discussion

If no accelerometer data is available, the value of this property is nil. An app that is receiving accelerometer data after calling startAccelerometerUpdates periodically checks the value of this property and processes the acceleration data.

See Also

Managing Accelerometer Updates

accelerometerUpdateInterval

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

- startAccelerometerUpdatesToQueue:withHandler:

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

- startAccelerometerUpdates

Starts accelerometer updates without a handler.

- stopAccelerometerUpdates

Stops accelerometer updates.

CMAccelerometerHandler

The type of block callback for handling accelerometer data.