Instance Method


Stops the delivery of step-counting updates to your app.


func stopStepCountingUpdates()


Call this method to stop the delivery of updates that you started by calling the startStepCountingUpdates(to:updateOn:withHandler:) method. This method does not stop queries started using the queryStepCountStarting(from:to:to:withHandler:) method.

See Also

Starting and Stopping Step Counting Updates

func startStepCountingUpdates(to: OperationQueue, updateOn: Int, withHandler: CMStepUpdateHandler)

Starts the delivery of current step-counting data to your app.

typealias CMStepUpdateHandler

A block that reports the number of steps recorded since updates began.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software