---
title: headphoneAudioExposureEvent
framework: healthkit
role: symbol
role_heading: Type Property
path: healthkit/hkcategorytypeidentifier/headphoneaudioexposureevent
---

# headphoneAudioExposureEvent

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

## Declaration

```swift
static let headphoneAudioExposureEvent: HKCategoryTypeIdentifier
```

## Discussion

Discussion iPhone and Apple Watch save a 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 enumeration.

## Topics

### Metadata Keys

- [HKMetadataKeyAudioExposureLevel](healthkit/hkmetadatakeyaudioexposurelevel.md)
- [HKMetadataKeyAudioExposureDuration](healthkit/hkmetadatakeyaudioexposureduration.md)

## See Also

### Hearing

- [environmentalAudioExposure](healthkit/hkquantitytypeidentifier/environmentalaudioexposure.md)
- [headphoneAudioExposure](healthkit/hkquantitytypeidentifier/headphoneaudioexposure.md)
- [environmentalAudioExposureEvent](healthkit/hkcategorytypeidentifier/environmentalaudioexposureevent.md)
- [audioExposureEvent](healthkit/hkcategorytypeidentifier/audioexposureevent.md)
