---
title: "init(type:startDate:endDate:objects:device:metadata:)"
framework: healthkit
role: symbol
role_heading: Initializer
path: "healthkit/hkcorrelation/init(type:startdate:enddate:objects:device:metadata:)"
---

# init(type:startDate:endDate:objects:device:metadata:)

## Declaration

```swift
convenience init(type correlationType: HKCorrelationType, startDate: Date, endDate: Date, objects: Set<HKSample>, device: HKDevice?, metadata: [String : Any]?)
```
