One Logo Pool Ball
HealthKit · IOS API REFERENCE

HKCorrelation

class · iOS 8.0+ · SDK 27.1

class HKCorrelation

Members (6)

init · iOS 8.0+

init

TypeScript
static initTypeStartEndObjects(correlationType: HKCorrelationType, startDate: globalThis.Date, endDate: globalThis.Date, objects: Array<HKSample>): HKCorrelation
Swift declaration
convenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects: Set<HKSample>)
init · iOS 9.0+

init

TypeScript
static initTypeStartEndObjectsDeviceMetadata(correlationType: HKCorrelationType, startDate: globalThis.Date, endDate: globalThis.Date, objects: Array<HKSample>, device?: (HKDevice) | null, metadata?: (Record<string, unknown>) | null): HKCorrelation
Swift declaration
convenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects: Set<HKSample>, device: HKDevice?, metadata: [String : Any]?)
init · iOS 8.0+

init

TypeScript
static initTypeStartEndObjectsMetadata(correlationType: HKCorrelationType, startDate: globalThis.Date, endDate: globalThis.Date, objects: Array<HKSample>, metadata?: (Record<string, unknown>) | null): HKCorrelation
Swift declaration
convenience init(type correlationType: HKCorrelationType, start startDate: Date, end endDate: Date, objects: Set<HKSample>, metadata: [String : Any]?)
method · iOS 8.0+

objects

TypeScript
objectsFor(objectType: HKObjectType): Array<HKSample>
Swift declaration
func objects(for objectType: HKObjectType) -> Set<HKSample>
get · iOS 8.0+

correlationType

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

objects

TypeScript
get objects(): Array<HKSample>
Swift declaration
var 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 →