public interface SensorEventListener2 extends SensorEventListener
Modifier and Type | Method and Description |
---|---|
void |
onFlushCompleted(Sensor sensor)
Called after flush() is completed.
|
onAccuracyChanged, onSensorChanged
void onFlushCompleted(Sensor sensor)
Build.VERSION_CODES.KITKAT
, applications may receive flush complete events
even if some other application has called flush() on the same sensor. Starting with
Build.VERSION_CODES.LOLLIPOP
, flush Complete events are sent ONLY to the
application that has explicitly called flush(). If the hardware FIFO is flushed due to some
other application calling flush(), flush complete event is not delivered to this application.
sensor
- The Sensor
on which flush was called.SensorManager.flush(SensorEventListener)