<!--
{
  "availability" : [
    "iOS: 18.1.0 -",
    "iPadOS: 18.1.0 -",
    "macCatalyst: 18.1.0 -",
    "macOS: 15.1.0 -",
    "visionOS: 2.1.0 -",
    "watchOS: 11.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKAudiogramSample/init(sensitivityPoints:start:end:device:metadata:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:objc(cs)HKAudiogramSample(cm)audiogramSampleWithSensitivityPoints:startDate:endDate:device:metadata:"
  },
  "title" : "init(sensitivityPoints:start:end:device:metadata:)"
}
-->

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

```
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

A new instance of an audiogram sample.

## Discussion

\abstract Creates a new audiogram sample with the specified attributes.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)