Class

CMMagnetometerData

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

Declaration

class CMMagnetometerData : CMLogItem

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

var magneticField: CMMagneticField

Returns the magnetic field measured by the magnetometer.

struct CMMagneticField

A structure containing 3-axis magnetometer data

Relationships

Inherits From

Conforms To