AmbientNoiseMonitor

public class AmbientNoiseMonitor

The AmbientNoiseMonitor class is used to monitor the ambient noise level in an environment to determine whether or not the conditions are sufficient for a lung function measurement.

  • The object that acts as the delegate of the monitor.

    Declaration

    Swift

    public weak var delegate: AmbientNoiseMonitorDelegate?
  • Indicates whether the ambient noise level is below or above the allowed threshold.

    Declaration

    Swift

    public fileprivate(set) var isBelowThreshold: Bool = true
  • Indicates whether the monitor is active or not.

    Declaration

    Swift

    public fileprivate(set) var isActive = false
  • Initializes an instance of the AmbientNoiseMonitor class.

    Declaration

    Swift

    public init()