Google 致力于为黑人社区推动种族平等。查看具体举措
Added in API level 29
Deprecated in API level 29

CarSensorManager.OnSensorChangedListener

public static interface CarSensorManager.OnSensorChangedListener

android.car.hardware.CarSensorManager.OnSensorChangedListener


Listener for car sensor data change. Callbacks are called in the Looper context.

Summary

Public methods

abstract void onSensorChanged(CarSensorEvent event)

Called when there is a new sensor data from car.

Public methods

onSensorChanged

Added in API level 29
Deprecated in API level 29
public abstract void onSensorChanged (CarSensorEvent event)

Called when there is a new sensor data from car.

Parameters
event CarSensorEvent: Incoming sensor event for the given sensor type.