Instance Property

initialResultsHandler

The results handler for this query’s initial results.

Declaration

@property(nonatomic, copy, nonnull) void (^initialResultsHandler)(HKStatisticsCollectionQuery *query, HKStatisticsCollection *result, NSError *error);

Discussion

If this property is not set to nil, the query executes the results handler on a background queue after it has finished calculating the statistics for all matching samples currently stored in HealthKit.

See Also

Getting and Setting Results Handlers

statisticsUpdateHandler

The results handler for monitoring updates to the HealthKit store.