A block that reports the number of steps for a query operation.
- iOS 7.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- Core Motion
This block takes two parameters:
The number of steps that occurred between the start and end times specified by the query.
An error object indicating that there was a problem gathering the data or
nilif the number of steps was determined correctly.