---
title: "init(sensitivityPoints:start:end:device:metadata:)"
framework: healthkit
role: symbol
role_heading: Initializer
path: "healthkit/hkaudiogramsample/init(sensitivitypoints:start:end:device:metadata:)"
---

# init(sensitivityPoints:start:end:device:metadata:)

## Declaration

```swift
convenience init(sensitivityPoints: [HKAudiogramSensitivityPoint], start startDate: Date, end endDate: Date, device: HKDevice?, metadata: [String : Any]?)
```

## Parameters

- `sensitivityPoints`: Sensitivity data associated with the sample, with a maximum limit of 30 points. Frequencies must be unique, and ordered ascending.
- `startDate`: The start date of the hearing test.
- `endDate`: The end date of the hearing test.
- `device`: The device that generated the sample data.
- `metadata`: Optional metadata associated with the sample.

## Return Value

Return Value A new instance of an audiogram sample.

## Discussion

Discussion Creates a new audiogram sample with the specified attributes.
