Structure

HKQueryOptions

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

Topics

Constants

static var strictStartDate: HKQueryOptions

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

static var strictEndDate: HKQueryOptions

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

Initializers

init(rawValue: UInt)

Returns a newly initialized query option using the provided integer.

Relationships

Conforms To

See Also

Creating Sample Predicates

class func predicateForSamples(withStart: Date?, end: Date?, options: HKQueryOptions = [])

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