Contents

headphoneAudioExposure

A quantity sample type that measures audio exposure from headphones.

Declaration

static let headphoneAudioExposure: HKQuantityTypeIdentifier

Discussion

These samples use sound pressure units (described in HKUnit). You create these units using the decibelAWeightedSoundPressureLevel() method. They measure discrete values of the equivalent continuous sound pressure level, described in HKQuantityAggregationStyle.discreteEquivalentContinuousLevel. Samples can be automatically detected by an iPhone or Apple Watch.

See Also

Hearing