Public Constructors | |
---|---|
AccessorySensorEvent(int accuracy, long timestamp, float[] sensorValues)
Create a sensor event. |
Public Methods | |
---|---|
float[] |
getSensorValues()
Get data values from sensor The length of the array is dependent on the sensor. |
long | getTimestamp() |
int | getAccuracy() |
Create a sensor event.
accuracy | The accuracy as defined in Sensor.SensorAccuracy |
---|---|
timestamp | The time in nanoseconds when the event fired. |
sensorValues | Array of sensor values. The length of the array is dependent on the sensor. |
Get data values from sensor The length of the array is dependent on the sensor.
The time in nanoseconds when the event fired.
The accuracy as defined in Sensor.SensorAccuracy
A sensor event from an accessory.