Google is committed to advancing racial equity for Black communities. See how.
Added in API level 29

CarInfoManager

public final class CarInfoManager
extends Object

java.lang.Object
   ↳ android.car.CarInfoManager


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
public float getEvBatteryCapacity ()

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

getEvPortLocation

Added in API level 29
public int getEvPortLocation ()

Returns
int EV port location of the car. 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
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
public int getFuelDoorLocation ()

Returns
int Fuel door location of the car. 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
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
public String getManufacturer ()

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

getModel

Added in API level 29
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
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.