Added in API level 29
Deprecated in API level 33

CarInfoManager

public final class CarInfoManager
extends Object

java.lang.Object
   ↳ android.car.CarInfoManager


This class was deprecated in API level 33.
Use CarPropertyManager instead.

Utility to retrieve various static information from car. Each data are grouped as Bundle and relevant data can be checked from Bundle using pre-specified keys.

Summary

Public methods

int getDriverSeat()
float getEvBatteryCapacity()
int[] getEvConnectorTypes()
int getEvPortLocation()
float getFuelCapacity()
int getFuelDoorLocation()
int[] getFuelTypes()
String getManufacturer()
String getModel()
String getModelYear()

This method was deprecated in API level 29. Use getModelYearInInteger() instead.

int getModelYearInInteger()
String getVehicleId()

This method was deprecated in API level 29. no support for car's identifier

Inherited methods

Public methods

getEvBatteryCapacity

Added in API level 29
Deprecated in API level 33
public float getEvBatteryCapacity ()

Returns
float Battery capacity of the car in Watt-Hour(Wh). Return 0 if car doesn't run on battery.

getEvConnectorTypes

Added in API level 29
Deprecated in API level 33
public int[] getEvConnectorTypes ()

Returns
int[] Array of EV_CONNECTOR_TYPEs available in the car. Empty array if no connector types available. Value is EvConnectorType.UNKNOWN, EvConnectorType.J1772, EvConnectorType.MENNEKES, EvConnectorType.CHADEMO, EvConnectorType.COMBO_1, EvConnectorType.COMBO_2, EvConnectorType.TESLA_ROADSTER, EvConnectorType.TESLA_HPWC, EvConnectorType.TESLA_SUPERCHARGER, EvConnectorType.GBT, EvConnectorType.GBT_DC, EvConnectorType.SCAME, or EvConnectorType.OTHER

getEvPortLocation

Added in API level 29
Deprecated in API level 33
public int getEvPortLocation ()

Returns
int EV port location of the car. Returns PortLocationType#UNKNOWN if the sensor is not available. Value is PortLocationType.UNKNOWN, PortLocationType.FRONT_LEFT, PortLocationType.FRONT_RIGHT, PortLocationType.REAR_LEFT, PortLocationType.REAR_RIGHT, PortLocationType.FRONT, or PortLocationType.REAR

getFuelCapacity

Added in API level 29
Deprecated in API level 33
public float getFuelCapacity ()

Returns
float Fuel capacity of the car in milliliters. 0 if car doesn't run on fuel.

getFuelDoorLocation

Added in API level 29
Deprecated in API level 33
public int getFuelDoorLocation ()

Returns
int Fuel door location of the car.Returns PortLocationType#UNKNOWN if the sensor is not available. Value is PortLocationType.UNKNOWN, PortLocationType.FRONT_LEFT, PortLocationType.FRONT_RIGHT, PortLocationType.REAR_LEFT, PortLocationType.REAR_RIGHT, PortLocationType.FRONT, or PortLocationType.REAR

getFuelTypes

Added in API level 29
Deprecated in API level 33
public int[] getFuelTypes ()

Returns
int[] Array of FUEL_TYPEs available in the car. Empty array if no fuel types available. Value is FuelType.UNKNOWN, FuelType.UNLEADED, FuelType.LEADED, FuelType.DIESEL_1, FuelType.DIESEL_2, FuelType.BIODIESEL, FuelType.E85, FuelType.LPG, FuelType.CNG, FuelType.LNG, FuelType.ELECTRIC, FuelType.HYDROGEN, or FuelType.OTHER

getManufacturer

Added in API level 29
Deprecated in API level 33
public String getManufacturer ()

Returns
String Manufacturer of the car. Empty if not available.

getModel

Added in API level 29
Deprecated in API level 33
public String getModel ()

Returns
String Model name of the car, empty if not available. This information may not necessarily allow distinguishing different car models as the same name may be used for different cars depending on manufacturers.

getModelYear

Added in API level 29
Deprecated in API level 29
public String getModelYear ()

This method was deprecated in API level 29.
Use getModelYearInInteger() instead.

Returns
String Model year of the car in AD. Empty if not available.

getModelYearInInteger

Added in API level 29
Deprecated in API level 33
public int getModelYearInInteger ()

Returns
int Model year of the car in AD. 0 if not available.

getVehicleId

Added in API level 29
Deprecated in API level 29
public String getVehicleId ()

This method was deprecated in API level 29.
no support for car's identifier

Returns
String always return empty string.