Class

CMMagnetometerData

Measurements of the Earth's magnetic field relative to the device.

Declaration

@interface CMMagnetometerData : CMLogItem

Overview

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.

Topics

Getting the Field Strength

magneticField

Returns the magnetic field measured by the magnetometer.

CMMagneticField

A structure containing 3-axis magnetometer data

Relationships

Inherits From