SensorMonitor
public class SensorMonitor: NSObject
The SensorMonitor class is used to monitor the connection state of the sensor. Notifies to it’s delegate whenever the sensor is connected/disconnected.
-
The object that acts as the delegate of the monitor.
Declaration
Swift
public weak var delegate: SensorMonitorDelegate? -
Indicates whether the sensor is plugged in or not.
Declaration
Swift
public fileprivate(set) var isPluggedIn = true
-
Initializes an instance of the
SensorMonitorclass.Declaration
Swift
public override init()
-
Starts monitoring the connection state of the Wing sensor.
Declaration
Swift
public func start() -
Stops monitoring the connection state of the Wing sensor.
Declaration
Swift
public func stop()
View on GitHub
SensorMonitor Class Reference