SensorDataControllerInterface
public protocol SensorDataControllerInterface
-
Declaration
Swift
func getMissingSensors() -> [String]
Return Value
the list of sensors missing from device
-
Returns the accuracy, if available, of the specified sensor type
Declaration
Swift
func getSensorAccuracy(sensorType: EnumSensorType) -> Int?
Parameters
sensorType
The sensor in question
-
Adds an observer to missing sensors
Declaration
Swift
func addMissingSensorsListener(listener: MissingSensorsListener)
Parameters
object
an object adhering to protocol MissingSensorsListener
-
Remove an observer of missing sensors
Declaration
Swift
func removeMissingSensorsListener(listener: MissingSensorsListener)
Parameters
object
an object adhering to protocol MissingSensorsListener
-
Adds an observer to changes in accuracy of a specific sensor
Declaration
Swift
func addSensorAccuracyListener(listener: SensorAccuracyListener, sensorType: EnumSensorType)
Parameters
object
an object adhering to protocol SensorAccuracyListener
sensorType
the sensor in question
-
Remove an observer to changes in accuracy of a specific sensor
Declaration
Swift
func removeSensorAccuracyListener(listener: SensorAccuracyListener, sensorType: EnumSensorType)
Parameters
object
an object adhering to protocol SensorAccuracyListener
sensorType
the sensor in question