Measurements of the Earth's magnetic field relative to the device.
On This Page
@interface CMMagnetometerData : CMLogItem
Your application can obtain samples of magnetometer measurements, as represented by instances of this class, from the block handler of the startMagnetometerUpdatesToQueue:withHandler: method or from the magnetometerData property of the CMMotionManager class.
Returns the magnetic field measured by the magnetometer.
A structure containing 3-axis magnetometer data