SensorReading

data class SensorReading(val values: FloatArray, val accuracy: Int, val timestamp: Long)

A single sensor sample captured by readSensor.

Constructors

Link copied to clipboard
constructor(values: FloatArray, accuracy: Int, timestamp: Long)

Properties

Link copied to clipboard

the android.hardware.SensorManager accuracy code at sample time.

Link copied to clipboard

the event timestamp in nanoseconds since boot (SensorEvent.timestamp), not wall-clock time.

Link copied to clipboard

defensively-cloned raw sensor values (e.g. x/y/z, or lux/distance in values[0]); meaning depends on the sensor type.