Contents

CMMagnetometerData

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

Declaration

class CMMagnetometerData

Overview

Your application can obtain samples of magnetometer measurements, as represented by instances of this class, from the block handler of the startMagnetometerUpdates(to:withHandler:) method or from the magnetometerData property of the CMMotionManager class.

Topics

Getting the Field Strength