Type Alias

CMStepQueryHandler

A block that reports the number of steps for a query operation.

Declaration

typedef void (^CMStepQueryHandler)(NSInteger numberOfSteps, NSError *error);

Discussion

This block takes two parameters:

numberOfSteps

The number of steps that occurred between the start and end times specified by the query.

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

Getting Historical Step Counting Data

- queryStepCountStartingFrom:to:toQueue:withHandler:

Gathers and returns historical step count data for the specified time period.

Deprecated