Type Property

environmentalAudioExposure

A quantity sample type that measures audio exposure to sounds in the environment.

Declaration

static let environmentalAudioExposure: 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.

See Also

Audio Exposure

static let headphoneAudioExposure: HKQuantityTypeIdentifier

A quantity sample type that measures audio exposure from headphones.