# CoreMotionDeviceMotionDataWithSuccess
Dictionary passed to the callback of the Magnetometer.startDeviceMotionUpdates() and Magnetometer.startDeviceMotionUpdatesUsingReferenceFrame() methods.
NOTE
This is an abstract type. Any object of this structure can be used where this type is used.
# Properties
# code READONLY
code :Number
An error code describing the error if there was one.
See ERROR
constants for possible values.
# gravity READONLY
gravity :CoreMotionAcceleration
The gravity acceleration vector expressed in the device's reference frame.
# heading READONLY
heading :Number
Returns heading angle in the range [0,360) degrees with respect to the attitude-reference-frame.
# magneticField READONLY
magneticField :CoreMotionCalibratedMagneticField
Returns the magnetic field vector with respect to the device.
# timestamp READONLY
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
userAcceleration :CoreMotionAcceleration
The acceleration that the user is giving to the device.