Enumeration

HKQueryOptions

Constants that describe how a sample’s time period overlaps with the target time period.

Declaration

typedef enum HKQueryOptions : NSUInteger {
    ...
} HKQueryOptions;

Topics

Constants

HKQueryOptionNone

The sample’s time period must overlap part of the target time period.

HKQueryOptionStrictStartDate

The sample’s start time must fall within the target time period.

HKQueryOptionStrictEndDate

The sample’s end time must fall within the target time period.

See Also

Creating Sample Predicates

+ predicateForSamplesWithStartDate:endDate:options:

Returns a predicate for samples whose start and end dates fall within the specified time interval.