AutomotiveCarHardwareManager

public final class AutomotiveCarHardwareManager
extends Object implements CarHardwareManager

java.lang.Object
   ↳ androidx.car.app.hardware.AutomotiveCarHardwareManager


CarHardwareManager which uses Android Automotive OS APIs to access properties, sensors, and actions.

Summary

Public constructors

AutomotiveCarHardwareManager(Context context)

Public methods

CarInfo getCarInfo()

Returns the CarInfo that can be used to query the car hardware information such as make, model, etc.

CarSensors getCarSensors()

Returns the CarSensors that can be used to access sensor information from the car hardware.

Inherited methods

Public constructors

AutomotiveCarHardwareManager

public AutomotiveCarHardwareManager (Context context)

Parameters
context Context

Public methods

getCarInfo

public CarInfo getCarInfo ()

Returns the CarInfo that can be used to query the car hardware information such as make, model, etc.

Returns
CarInfo

getCarSensors

public CarSensors getCarSensors ()

Returns the CarSensors that can be used to access sensor information from the car hardware.

Returns
CarSensors