Type Alias

CMMotionActivityQueryHandler

A block that reports the motion updates that occurred between the specified query interval.

Declaration

typealias CMMotionActivityQueryHandler = ([CMMotionActivity]?, Error?) -> Void

Discussion

This block takes the following parameters:

activities

An 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.

error

An error object indicating that there was a problem gathering the data or nil if the motion data was determined correctly.

See Also

Getting Historical Activity Data

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software