Classes

The following classes are available globally.

  • The SensorMonitor class is used to monitor the connection state of the sensor. Notifies to it’s delegate whenever the sensor is connected/disconnected.

    See more

    Declaration

    Swift

    public class SensorMonitor: NSObject
  • 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.

    See more

    Declaration

    Swift

    public class AmbientNoiseMonitor
  • The ReachabilityMonitor class is used to monitor the network reachability. Any changes to the reachability causes a message to be sent to the delegate, indicating a change in network reachability has occurred.

    See more

    Declaration

    Swift

    public class ReachabilityMonitor
  • The TestSessionManager class is responsible for keeping track of a test session’s state and provides an inteface to the necessary Wing API endpoints to perform a lung function test.

    See more

    Declaration

    Swift

    public class TestSessionManager
  • The TestSession struct represents a session of multiple lung function tests.

    See more

    Declaration

    Swift

    public class TestSession: Decodable
  • The TestSessionRecorder class is used to detect and record when a user blows into the Wing sensor.

    See more

    Declaration

    Swift

    public class TestSessionRecorder
  • The Client class acts as the interface for the Wing REST API. All Wing API Requests are routed through this class to apply the necessary authentication to the requests.

    See more

    Declaration

    Swift

    public class Client
  • The Test struct represents a lung function test.

    See more

    Declaration

    Swift

    public class Test: Decodable