Type Alias

CMStepUpdateHandler

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

Declaration

typedef void (^CMStepUpdateHandler)(NSInteger numberOfSteps, NSDate *timestamp, NSError *error);

Discussion

This block takes the following parameters:

numberOfSteps

The total number of steps since the startStepCountingUpdatesToQueue:updateOn:withHandler: method was called.

timestamp

The time at which the current step count was reported.

error

An error object indicating that there was a problem gathering the data or nil if the number of steps was determined correctly.

See Also

Starting and Stopping Step Counting Updates

- startStepCountingUpdatesToQueue:updateOn:withHandler:

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

Deprecated
- stopStepCountingUpdates

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

Deprecated