Added in API level 24
    SensorEventCallback
abstract class SensorEventCallback : SensorEventListener2
| kotlin.Any | |
| ↳ | android.hardware.SensorEventCallback | 
Used for receiving sensor additional information frames.
Summary
| Public constructors | |
|---|---|
| Public methods | |
|---|---|
| open Unit | onAccuracyChanged(sensor: Sensor!, accuracy: Int)Called when the accuracy of the registered sensor has changed. | 
| open Unit | onFlushCompleted(sensor: Sensor!)Called after flush() is completed. | 
| open Unit | Called when a sensor additional information frame is available. | 
| open Unit | onSensorChanged(event: SensorEvent!)Called when sensor values have changed. | 
Public constructors
SensorEventCallback
SensorEventCallback()
Public methods
onAccuracyChanged
Added in API level 24
      open fun onAccuracyChanged(
sensor: Sensor!,
accuracy: Int
): Unit
Called when the accuracy of the registered sensor has changed.
| Parameters | |
|---|---|
| accuracy | Int: The new accuracy of this sensor, one of SensorManager.SENSOR_STATUS_* | 
onFlushCompleted
Added in API level 24
      open fun onFlushCompleted(sensor: Sensor!): Unit
Called after flush() is completed.
| Parameters | |
|---|---|
| sensor | Sensor!: The Sensoron which flush was called. | 
onSensorAdditionalInfo
Added in API level 24
      open fun onSensorAdditionalInfo(info: SensorAdditionalInfo!): Unit
Called when a sensor additional information frame is available.
| Parameters | |
|---|---|
| info | SensorAdditionalInfo!: A SensorAdditionalInfoframe reported from sensor hardware. | 
onSensorChanged
Added in API level 24
      open fun onSensorChanged(event: SensorEvent!): Unit
Called when sensor values have changed.
| Parameters | |
|---|---|
| event | SensorEvent!: the SensorEvent. | 
