CarInfoManager

public final class CarInfoManager
extends Object

java.lang.Object
   ↳ android.car.CarInfoManager


This class is deprecated.
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

public float getEvBatteryCapacity ()

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

getEvPortLocation

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

public float getFuelCapacity ()

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

getFuelDoorLocation

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

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

public String getManufacturer ()

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

getModel

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


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

public int getModelYearInInteger ()

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

getVehicleId


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.