CMPedometer object to fetch pedestrian-related data. You use a pedometer object to retrieve step counts and other information about the distance traveled and the number of floors ascended or descended. The pedometer object manages a cache of historic data that you can query or you can ask for live updates as the data is processed.
- iOS 8.0+
- watchOS 2.0+
To use a pedometer object, create an instance of this class and call the appropriate methods. Use the
query method to retrieve data that has already been gathered. To get live updates, use the
start method to start the delivery of events to the handler you provide.