Starts magnetometer updates on an operation queue and with a specified handler.
- iOS 5.0+
- Mac Catalyst 13.0+
- watchOS 2.0+
- Core Motion
An operation queue provided by the caller. Because the processed events might arrive at a high rate, using the main operation queue is not recommended.
A block that is invoked with each update to handle new magnetometer data. The block must conform to the
You must call
stop when you no longer want your app to process magnetometer updates.