startEventUpdates(handler:)
Starts the delivery of pedometer events to your app.
Declaration
func startEventUpdates(handler: @escaping CMPedometerEventHandler)Parameters
- handler:
The block to execute when a pedometer event is available. This parameter must not be
nil.
Discussion
Pedometer events report changes in the user’s pedestrian activity.