Class

HKQuantitySeriesSampleQuery

A query that accesses the series data associated with a quantity sample.

Declaration

class HKQuantitySeriesSampleQuery : HKQuery

Overview

Use a series query to access the individual HKQuantity objects added to a sample using an HKQuantitySeriesSampleBuilder.

Topics

Creating a Series Query

var includeSample: Bool

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

var orderByQuantitySampleStartDate: Bool

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

Relationships

Inherits From

Conforms To

See Also

Common Query Types

class HKSampleQuery

A general-purpose query that returns a snapshot of all the matching samples currently saved in the HealthKit store.

class HKAnchoredObjectQuery

A query that returns only recent changes to the HealthKit store, including a snapshot of new changes and continuous monitoring as a long-running query.

class HKObserverQuery

A long-running query that monitors the HealthKit store and updates your app when the HealthKit store saves or deletes a matching sample.

class HKCorrelationQuery

A query that performs complex searches based on the correlation’s contents, and returns a snapshot of all matching samples.

class HKDocumentQuery

A query that returns a snapshot of all matching documents currently saved in the HealthKit store.

class HKHeartbeatSeriesQuery

A query that returns the heartbeat data contained in a heartbeat series sample.

class HKQuery

An abstract class for all the query classes in HealthKit.