A block that reports the motion updates that occurred between the specified query interval.
- iOS 7.0+
- Mac Catalyst 13.0+
- watchOS 2.0+
- Core Motion
This block takes the following parameters:
An array of
CMMotionobjects indicating the updates that occurred. The objects in the array are ordered by the time at which they occurred in the specified time interval. Use the
startproperty in each motion object to determine when the update occurred.
An error object indicating that there was a problem gathering the data or
nilif the motion data was determined correctly.