SensorSampleResult

sealed interface SensorSampleResult

Outcome of sampleSensor: distinguishes a missing sensor from one that stayed silent.

Inheritors

Types

Link copied to clipboard
data class NoReading(val waitedMs: Long) : SensorSampleResult

The sensor exists but delivered no event within the sampling window / timeout.

Link copied to clipboard

The device has no default sensor of the requested type (or registration failed).

Link copied to clipboard
data class Readings(val readings: List<SensorReading>) : SensorSampleResult

At least one sample was collected.