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.