Class

HKQuantitySeriesSampleQuery

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

Declaration

@interface 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

- initWithQuantityType:predicate:quantityHandler:

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

includeSample

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

orderByQuantitySampleStartDate

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

Deprecated Mehtods

- initWithSample:quantityHandler:

Creates a new series query.

Deprecated

Relationships

Inherits From

See Also

Common Query Types

HKSampleQuery

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

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.

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.

HKCorrelationQuery

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

HKDocumentQuery

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

HKHeartbeatSeriesQuery

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

HKQuery

An abstract class for all the query classes in HealthKit.