Modules.CoreMotion.CoreMotionDeviceMotionData
Representation of a device-motion event.
Extends: CoreMotionLogItem · Since: 3.3.0 · Platforms: iphone, ipad
Properties #
gravity#
Type: CoreMotionAcceleration
The gravity acceleration vector expressed in the device's reference frame.
heading#
Type: Number
Returns heading angle in the range [0,360) degrees with respect to the attitude-reference-frame.
magneticField#
Type: CoreMotionCalibratedMagneticField
Returns the magnetic field vector with respect to the device.
userAcceleration#
Type: CoreMotionAcceleration
The acceleration that the user is giving to the device.