Starts device-motion updates on an operation queue and using a specified reference frame and block handler.
- iOS 5.0+
- Mac Catalyst 13.0+Beta
- watchOS 2.0+
- Core Motion
A constant identifying the reference frame to use for device-motion updates.
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 device-motion data. The block must conform to the
You must call
stop when you no longer want your app to process device-motion updates.