Instance Property

includeSample

A Boolean value that determines whether the query should return the series sample.

Declaration

@property(nonatomic, assign) BOOL includeSample;

Discussion

By default, a quantity series sample only returns the individual quantity objects that make up the series—not the HKQuantitySample object that represents the entire series. Set this parameter to trueExpression to have the query also return the quantity sample object for the series.

See Also

Creating a Series Query

- initWithQuantityType:predicate:quantityHandler:

Creates a new query for a series of the specified quantity type.

orderByQuantitySampleStartDate

A Boolean value that determines whether the query groups the results based on the quantity sample’s start date.