lightbulb_outline Please take our October 2018 developer survey. Start survey

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

float getEvBatteryCapacity()
int[] getEvConnectorTypes()
float getFuelCapacity()
int[] getFuelTypes()
String getManufacturer()
String getModel()
String getModelYear()
String getVehicleId()

Inherited methods

Public methods

getEvBatteryCapacity

public float getEvBatteryCapacity ()

Returns
float Battery capacity of the car in WH. 0 if car doesn't run on battery.

Throws
CarNotConnectedException

getEvConnectorTypes

public int[] getEvConnectorTypes ()

Returns
int[] Array of EV_CONNECTOR_TYPEs available in the car. Empty array if no connector types available.

Throws
CarNotConnectedException

getFuelCapacity

public float getFuelCapacity ()

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

Throws
CarNotConnectedException

getFuelTypes

public int[] getFuelTypes ()

Returns
int[] Array of FUEL_TYPEs available in the car. Empty array if no fuel types available.

Throws
CarNotConnectedException

getManufacturer

public String getManufacturer ()

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

Throws
CarNotConnectedException

getModel

public String getModel ()

Returns
String Model name of the car, null 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.

Throws
CarNotConnectedException

getModelYear

public String getModelYear ()

Returns
String Model year of the car in AC. Null if not available.

Throws
CarNotConnectedException

getVehicleId

public String getVehicleId ()

Returns
String Unique identifier for the car. This is not VIN, and vehicle id is persistent until user resets it. This ID is guaranteed to be always available. TODO: BASIC_INFO_KEY_VEHICLE_ID property?

Throws
CarNotConnectedException