public abstract class SensorEventCallback extends Object implements SensorEventListener2
Constructor and Description |
---|
SensorEventCallback() |
Modifier and Type | Method and Description |
---|---|
void |
onAccuracyChanged(Sensor sensor,
int accuracy)
Called when the accuracy of the registered sensor has changed.
|
void |
onFlushCompleted(Sensor sensor)
Called after flush() is completed.
|
void |
onSensorAdditionalInfo(SensorAdditionalInfo info)
Called when a sensor additional information frame is available.
|
void |
onSensorChanged(SensorEvent event)
Called when sensor values have changed.
|
public void onSensorChanged(SensorEvent event)
onSensorChanged
in interface SensorEventListener
event
- the SensorEvent
.SensorEventListener.onSensorChanged(SensorEvent)
public void onAccuracyChanged(Sensor sensor, int accuracy)
onAccuracyChanged
in interface SensorEventListener
accuracy
- The new accuracy of this sensor, one of
SensorManager.SENSOR_STATUS_*
SensorEventListener.onAccuracyChanged(Sensor, int)
public void onFlushCompleted(Sensor sensor)
onFlushCompleted
in interface SensorEventListener2
sensor
- The Sensor
on which flush was called.SensorEventListener2.onFlushCompleted(Sensor)
public void onSensorAdditionalInfo(SensorAdditionalInfo info)
info
- A SensorAdditionalInfo
frame
reported from sensor hardware.