Creates a new audiogram sample.
- iOS 13.0+
- Mac Catalyst 13.0+
- watchOS 6.0+
An array of sensitivity points.
The start date for the sample. This date must be equal to or earlier than the end date; otherwise, this method throws an exception (
The end date for the sample. This date must be equal to or later than the start date; otherwise, this method throws an exception (
The metadata dictionary contains extra information describing this sample. The dictionary’s keys are strings. The values may be strings, numbers, or dates. For a complete list of predefined metadata keys, see Metadata Keys.
Using predefined keys helps facilitate sharing data between apps; however, you are also encouraged to create your own, custom keys as needed to extend the HealthKit quantity sample’s capabilities.