Instance Property

deviceMotion

The latest sample of device-motion data.

Declaration

@property(readonly) CMDeviceMotion *deviceMotion;

Discussion

If no device-motion data is available, the value of this property is nil. An app that is receiving device-motion data after calling startDeviceMotionUpdates periodically checks the value of this property and processes the device-motion data.

See Also

Managing Device Motion Updates

showsDeviceMovementDisplay

Controls whether the device-movement display is shown.

deviceMotionUpdateInterval

The interval, in seconds, for providing device-motion updates to the block handler.

- startDeviceMotionUpdatesUsingReferenceFrame:toQueue:withHandler:

Starts device-motion updates on an operation queue and using a specified reference frame and block handler.

- startDeviceMotionUpdatesToQueue:withHandler:

Starts device-motion updates on an operation queue and using a specified block handler.

- startDeviceMotionUpdatesUsingReferenceFrame:

Starts device-motion updates using a reference frame but without a block handler.

- startDeviceMotionUpdates

Starts device-motion updates without a block handler.

- stopDeviceMotionUpdates

Stops device-motion updates.

CMDeviceMotionHandler

The type of block callback for handling device-motion data.