Contents

init(sensitivityPoints:start:end:device:metadata:)

Declaration

convenience init(sensitivityPoints: [HKAudiogramSensitivityPoint], start startDate: Date, end endDate: Date, device: HKDevice?, metadata: [String : Any]?)

Parameters

  • sensitivityPoints:

    Sensitivity data associated with the sample, with a maximum limit of 30 points. Frequencies must be unique, and ordered ascending.

  • startDate:

    The start date of the hearing test.

  • endDate:

    The end date of the hearing test.

  • device:

    The device that generated the sample data.

  • metadata:

    Optional metadata associated with the sample.

Return Value

A new instance of an audiogram sample.

Discussion

Creates a new audiogram sample with the specified attributes.