A block for processing pedometer events.
- iOS 10.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- watchOS 3.0+
- Core Motion
You provide a block of this type when requesting pedometer events from a
CMPedometer object. When a new event becomes available, the pedometer object delivers that data to your block for processing. If there was an error retrieving the data, the pedometer object provides an error object instead.
This block has no return value and takes the following parameters.