Instance Property

sampleType

The type of objects being queried.

Declaration

var sampleType: HKSampleType? { get }

Discussion

Not all queries return objects of the specified type; however, they all use the object type to generate their results. For example, source queries return a set of data sources that have saved objects with a matching type, while statistics queries return statistical information about the objects with a matching type.

See Also

Getting and Setting Properties

var predicate: NSPredicate?

A predicate used to filter the objects returned from the HealthKit store.

var objectType: HKObjectType?

The type of objects being queried.