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
sensorTypeThe sensor in question
-
Adds an observer to missing sensors
Declaration
Swift
func addMissingSensorsListener(listener: MissingSensorsListener)Parameters
objectan object adhering to protocol MissingSensorsListener
-
Remove an observer of missing sensors
Declaration
Swift
func removeMissingSensorsListener(listener: MissingSensorsListener)Parameters
objectan 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
objectan object adhering to protocol SensorAccuracyListener
sensorTypethe sensor in question
-
Remove an observer to changes in accuracy of a specific sensor
Declaration
Swift
func removeSensorAccuracyListener(listener: SensorAccuracyListener, sensorType: EnumSensorType)Parameters
objectan object adhering to protocol SensorAccuracyListener
sensorTypethe sensor in question
SensorDataControllerInterface Protocol Reference