<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreMotion",
  "identifier" : "/documentation/CoreMotion/CMMotionManager/magnetometerUpdateInterval",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Motion"
    ],
    "preciseIdentifier" : "c:objc(cs)CMMotionManager(py)magnetometerUpdateInterval"
  },
  "title" : "magnetometerUpdateInterval"
}
-->

# magnetometerUpdateInterval

The interval, in seconds, at which the system delivers magnetometer data to the block handler.

```
var magnetometerUpdateInterval: TimeInterval { get set }
```

## Discussion

The supplies magnetometer data to the block handler specified in [`startMagnetometerUpdates(to:withHandler:)`](/documentation/CoreMotion/CMMotionManager/startMagnetometerUpdates(to:withHandler:)) 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 [`CMMagnetometerData`](/documentation/CoreMotion/CMMagnetometerData) instances to determine the true update interval.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)