CMStepUpdateHandler
A block that reports the number of steps recorded since updates began.
Declaration
typealias CMStepUpdateHandler = (Int, Date, (any Error)?) -> VoidDiscussion
This block takes the following parameters:
numberOfStepsThe total number of steps since the startStepCountingUpdates(to:updateOn:withHandler:) method was called.
timestampThe time at which the current step count was reported.
errorAn error object indicating that there was a problem gathering the data or
nilif the number of steps was determined correctly.