Contents

deviceMotion

The latest sample of device-motion data.

Declaration

var deviceMotion: CMDeviceMotion? { get }

Mentioned in

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