Instance Method

startAccelerometerUpdates

Starts accelerometer updates without a handler.

Declaration

- (void)startAccelerometerUpdates;

Discussion

You can get the latest accelerometer data through the accelerometerData property. You must call stopAccelerometerUpdates when you no longer want your app to process accelerometer updates.

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.

- stopAccelerometerUpdates

Stops accelerometer updates.

accelerometerData

The latest sample of accelerometer data.

CMAccelerometerHandler

The type of block callback for handling accelerometer data.