The interval, in seconds, at which the system delivers magnetometer data to the block handler.
SDKs
- iOS 5.0+
- Mac Catalyst 13.0+
- watchOS 2.0+
Framework
- Core Motion
Declaration
var magnetometerUpdateInterval: Time Interval { get set }
Discussion
The supplies magnetometer data to the block handler specified in start
at regular intervals determined by the value of this property. The interval unit are in seconds. The value of this property is capped to minimum and maximum values; the maximum value is determined by the maximum frequency supported by the hardware. If your app is sensitive to the intervals of magnetometer data, it should always check the timestamps of the delivered CMMagnetometer
instances to determine the true update interval.