CMMotionActivityQueryHandler
A block that reports the motion updates that occurred between the specified query interval.
Declaration
typealias CMMotionActivityQueryHandler = ([CMMotionActivity]?, (any Error)?) -> VoidDiscussion
This block takes the following parameters:
activitiesAn array of CMMotionActivity objects 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 startDate property in each motion object to determine when the update occurred.
errorAn error object indicating that there was a problem gathering the data or
nilif the motion data was determined correctly.