CoreMotionMagnetometerDataWithSuccess
> CoreMotionMagnetometerDataWithSuccess

Dictionary passed to the callback of the Magnetometer.startMagnetometerUpdates() method.

  • 3.3.0
  • 3.3.0

NOTE This is an abstract type. Any object meeting this description can be used where this type is used.

Defined By

Properties

CoreMotionMagnetometerDataWithSuccess
code : Numberreadonly

An error code describing the error if there was one.

An error code describing the error if there was one.

See ERROR constants for possible values.

CoreMotionMagnetometerDataWithSuccess
error : Stringreadonly

An error message describing the error if there was one.

An error message describing the error if there was one.

The magnetic field measured by the magnetometer.

The magnetic field measured by the magnetometer.

For more information, see iOS Developer Library: CMMagnetometerData.magneticField property.

CoreMotionMagnetometerDataWithSuccess
success : Booleanreadonly

A Boolean indicating if the operation was successful or not.

A Boolean indicating if the operation was successful or not.

The time when the logged item is valid.

The time when the logged item is valid.

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