Skip to content

Modules.CoreMotion.CoreMotionDeviceMotionData

Representation of a device-motion event.

Extends: CoreMotionLogItem · Since: 3.3.0 · Platforms: iphone, ipad

Properties #

attitude#

Type: CoreMotionAttitude

The attitude of the device.

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.

rotationRate#

Type: CoreMotionRotationRate

The roation rate of the device.

userAcceleration#

Type: CoreMotionAcceleration

The acceleration that the user is giving to the device.

Titanium SDK Documentation