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