public abstract class SensorEventCallback
extends Object implements SensorEventListener2
| java.lang.Object | |
| android.hardware.SensorEventCallback | |
用于接收传感器附加信息帧。
Public constructors |
|
|---|---|
SensorEventCallback() |
|
公共方法(Public methods) |
|
|---|---|
void |
onAccuracyChanged(Sensor sensor, int accuracy) 当注册传感器的精度发生变化时调用。 |
void |
onFlushCompleted(Sensor sensor) flush()完成后调用。 |
void |
onSensorAdditionalInfo(SensorAdditionalInfo info) 当传感器附加信息帧可用时调用。 |
void |
onSensorChanged(SensorEvent event) 传感器值发生变化时调用。 |
继承方法(Inherited methods) |
|
|---|---|
java.lang.Object
|
|
android.hardware.SensorEventListener2
|
|
android.hardware.SensorEventListener
|
|
void onAccuracyChanged (Sensor sensor, int accuracy)
当注册传感器的精度发生变化时调用。
| 参数(Parameters) | |
|---|---|
sensor |
Sensor
|
accuracy |
int: The new accuracy of this sensor, one of SensorManager.SENSOR_STATUS_* |
void onFlushCompleted (Sensor sensor)
flush()完成后调用。
| 参数(Parameters) | |
|---|---|
sensor |
Sensor: The Sensor on which flush was called. |
也可以看看:
void onSensorAdditionalInfo (SensorAdditionalInfo info)
当传感器附加信息帧可用时调用。
| 参数(Parameters) | |
|---|---|
info |
SensorAdditionalInfo: A SensorAdditionalInfo frame reported from sensor hardware. |
void onSensorChanged (SensorEvent event)
传感器值发生变化时调用。
| 参数(Parameters) | |
|---|---|
event |
SensorEvent: the SensorEvent. |
也可以看看: