Sensor Collector2
Base class for sensor collectors. This collector does not have an internal buffer.
Parameters
type of measurement.
type of collector.
Inheritors
Constructors
Types
Interface to notify when sensor accuracy changes.
Interface to notify when a new measurement is available. Notice that notified measurements from multiple collectors of different sensors, might be out of order. Notice that notified measurement is reused for memory efficiency.
Properties
listener to notify changes in accuracy.
listener to notify new measurements. It must be noticed that measurements notification might be delayed.
Gets most recent timestamp of all measurements processed so far. Timestamp is expressed in nanoseconds by a monotonic clock based on SystemClock.elapsedRealtimeNanos.
Gets number of processed measurements since this collector started.
Indicates whether requested sensor is available or not.
Delay of sensor between samples.
Initial offset expressed in nano seconds between first received measurement timestamp and start time expressed in the monotonically increasing system clock obtained by SystemClock.elapsedRealtimeNanos.
indicates whether startOffset will be computed when first measurement is received or not. True indicates that offset is computed, false assumes that offset is null.
Timestamp when collector started expressed as a monotonically increasing timestamp in nanoseconds as indicated by SystemClock.elapsedRealtimeNanos.