One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKCorrelationQuery

class · iOS 8.0+ · SDK 27.1

class HKCorrelationQuery

Members (3)

init · iOS 8.0+

init

TypeScript
static init(correlationType: HKCorrelationType, predicate: (_Foundation_NSPredicate) | null, samplePredicates: (NativeMap<HKSampleType, _Foundation_NSPredicate>) | null, completion: ((arg0: HKCorrelationQuery, arg1: (Array<HKCorrelation>) | null, arg2: (NativeError) | null) => void)): HKCorrelationQuery
Swift declaration
init(type correlationType: HKCorrelationType, predicate: NSPredicate?, samplePredicates: [HKSampleType : NSPredicate]?, completion: @escaping @Sendable (HKCorrelationQuery, [HKCorrelation]?, (any Error)?) -> Void)
get · iOS 8.0+

correlationType

TypeScript
get correlationType(): HKCorrelationType
Swift declaration
@NSCopying var correlationType: HKCorrelationType { get }
get · iOS 8.0+

samplePredicates

TypeScript
get samplePredicates(): (NativeMap<HKSampleType, _Foundation_NSPredicate>) | null
Swift declaration
var samplePredicates: [HKSampleType : NSPredicate]? { get }

Skipped declarations

1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

HKCorrelationQuery.init()

inherited init: cannot prove legal (class declares 1 custom initializer)

All HealthKit types →