---
title: magnetometerUpdateInterval
framework: coremotion
role: symbol
role_heading: Instance Property
path: coremotion/cmmotionmanager/magnetometerupdateinterval
---

# magnetometerUpdateInterval

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

## Declaration

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

## Discussion

Discussion The supplies magnetometer data to the block handler specified in 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 instances to determine the true update interval.

## See Also

### Managing Magnetometer Updates

- [startMagnetometerUpdates(to:withHandler:)](coremotion/cmmotionmanager/startmagnetometerupdates(to:withhandler:).md)
- [startMagnetometerUpdates()](coremotion/cmmotionmanager/startmagnetometerupdates().md)
- [stopMagnetometerUpdates()](coremotion/cmmotionmanager/stopmagnetometerupdates().md)
- [magnetometerData](coremotion/cmmotionmanager/magnetometerdata.md)
- [CMMagnetometerHandler](coremotion/cmmagnetometerhandler.md)
