HealthKit · IOS API REFERENCE
HKCorrelation
class · iOS 8.0+ · SDK 27.1
class HKCorrelation
Members (6)
init · iOS 8.0+init
TypeScriptstatic initTypeStartEndObjects(correlationType: HKCorrelationType, startDate: globalThis.Date, endDate: globalThis.Date, objects: Array<HKSample>): HKCorrelation
Swift declarationconvenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects: Set<HKSample>)
init · iOS 9.0+init
TypeScriptstatic initTypeStartEndObjectsDeviceMetadata(correlationType: HKCorrelationType, startDate: globalThis.Date, endDate: globalThis.Date, objects: Array<HKSample>, device?: (HKDevice) | null, metadata?: (Record<string, unknown>) | null): HKCorrelation
Swift declarationconvenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects: Set<HKSample>, device: HKDevice?, metadata: [String : Any]?)
init · iOS 8.0+init
TypeScriptstatic initTypeStartEndObjectsMetadata(correlationType: HKCorrelationType, startDate: globalThis.Date, endDate: globalThis.Date, objects: Array<HKSample>, metadata?: (Record<string, unknown>) | null): HKCorrelation
Swift declarationconvenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects: Set<HKSample>, metadata: [String : Any]?)
method · iOS 8.0+objects
TypeScriptobjectsFor(objectType: HKObjectType): Array<HKSample>
Swift declarationfunc objects(for objectType: HKObjectType) -> Set<HKSample>
get · iOS 8.0+correlationType
TypeScriptget correlationType(): HKCorrelationType
Swift declarationvar correlationType: HKCorrelationType { get }
get · iOS 8.0+objects
TypeScriptget objects(): Array<HKSample>
Swift declarationvar objects: Set<HKSample> { get }
Skipped declarations
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
HKCorrelation.init()
inherited init: cannot prove legal (class declares 6 custom initializers)
All HealthKit types →