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.

Beta
var orderByQuantitySampleStartDate: Bool

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

Beta

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 whenever a matching sample is saved to or deleted from the HealthKit store.

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.

Beta
class HKQuery

An abstract class for all the query classes in HealthKit.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software