startDeviceMotionUpdates(to:withHandler:)
Starts device-motion updates with a handler.
Declaration
func startDeviceMotionUpdates(to queue: OperationQueue, withHandler handler: @escaping CMHeadphoneMotionManager.DeviceMotionHandler)Parameters
- queue:
The queue for handling updates.
- handler:
The handler that receives the updates.