Instance Property

deviceMotionUpdateInterval

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

Declaration

@property(assign, nonatomic) NSTimeInterval deviceMotionUpdateInterval;

Discussion

The system supplies device-motion updates to the block handler specified in startDeviceMotionUpdatesToQueue:withHandler: at regular intervals determined by the value of this property. The interval units are in seconds. The value of this property is capped to minimum and maximum values; the maximum value is determined by the maximum frequency supported by the hardware. If your app is sensitive to the intervals of device-motion data, it should always check the timestamps of the delivered CMDeviceMotion instances to determine the true update interval.

See Also

Managing Device Motion Updates

showsDeviceMovementDisplay

Controls whether the device-movement display is shown.

- 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.

deviceMotion

The latest sample of device-motion data.

CMDeviceMotionHandler

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