<!--
{
  "availability" : [
    "iOS: 14.2.0 -",
    "iPadOS: 14.2.0 -",
    "macCatalyst: 14.2.0 -",
    "macOS: 13.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 7.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HealthKit",
  "identifier" : "/documentation/HealthKit/HKCategoryTypeIdentifier/headphoneAudioExposureEvent",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "HealthKit"
    ],
    "preciseIdentifier" : "c:@HKCategoryTypeIdentifierHeadphoneAudioExposureEvent"
  },
  "title" : "headphoneAudioExposureEvent"
}
-->

# headphoneAudioExposureEvent

A category sample type that records exposure to potentially damaging sounds from headphones.

```
static let headphoneAudioExposureEvent: HKCategoryTypeIdentifier
```

## Discussion

iPhone and Apple Watch save a [`headphoneAudioExposureEvent`](/documentation/HealthKit/HKCategoryTypeIdentifier/headphoneAudioExposureEvent) sample when the device generates a notification about loud headphone audio. Both devices generate these notifications when the user listens to audio long enough and at a volume that could affect their hearing. In some regions, users can enable or disable loud headphone notifications from Settings > Sounds & Haptics > Headphone Safety.

Samples of this type use values from the [`HKCategoryValueHeadphoneAudioExposureEvent`](/documentation/HealthKit/HKCategoryValueHeadphoneAudioExposureEvent) enumeration.

## Topics

### Metadata Keys

[`HKMetadataKeyAudioExposureLevel`](/documentation/HealthKit/HKMetadataKeyAudioExposureLevel)

The audio level associated with an audio event.

[`HKMetadataKeyAudioExposureDuration`](/documentation/HealthKit/HKMetadataKeyAudioExposureDuration)

The audio exposure event’s duration.



---

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)