Class

CMMagnetometerData

Instances of the CMMagnetometerData class encapsulated measurements of the magnetic field made by the device’s magnetometer.

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.

Symbols

MethodGroup

var magneticField: CMMagneticField

Returns the magnetic field measured by the magnetometer.

Constants

CMMagneticField

A structure containing 3-axis magnetometer data

Relationships

Inherits From