# CoreMotionDeviceMotionDataWithSuccess

Availability
3.3.0

NOTE

This is an abstract type. Any object of this structure can be used where this type is used.

# Properties

# attitude READONLY

Availability
3.3.0
attitude :CoreMotionAttitude

The attitude of the device.


# code READONLY

Availability
3.3.0
code :Number

An error code describing the error if there was one.

See ERROR constants for possible values.


# error READONLY

Availability
3.3.0
error :String

An error message describing the error if there was one.


# gravity READONLY

Availability
3.3.0

The gravity acceleration vector expressed in the device's reference frame.


# heading READONLY

Availability
8.3.0
heading :Number

Returns heading angle in the range [0,360) degrees with respect to the attitude-reference-frame.


# magneticField READONLY

Availability
3.3.0

Returns the magnetic field vector with respect to the device.


# rotationRate READONLY

Availability
3.3.0
rotationRate :CoreMotionRotationRate

The roation rate of the device.


# success READONLY

Availability
3.3.0
success :Boolean

A Boolean indicating if the operation was successful or not.


# timestamp READONLY

Availability
3.3.0
timestamp :Number

The time when the logged item is valid.

The time stamp is the amount of time in milliseconds since the phone booted.


# userAcceleration READONLY

Availability
3.3.0
userAcceleration :CoreMotionAcceleration

The acceleration that the user is giving to the device.