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 |
int
|
getModelYearInInteger()
|
String
|
getVehicleId()
This method was deprecated in API level 29. no support for car's identifier |
Inherited methods | |
---|---|
Public methods
getDriverSeat
public int getDriverSeat ()
Returns | |
---|---|
int |
Driver seat's location. Returns VehicleAreaSeat#SEAT_UNKNOWN if the sensor
is not available.
Value is VehicleAreaSeat.SEAT_UNKNOWN , VehicleAreaSeat.SEAT_ROW_1_LEFT , VehicleAreaSeat.SEAT_ROW_1_CENTER , VehicleAreaSeat.SEAT_ROW_1_RIGHT , VehicleAreaSeat.SEAT_ROW_2_LEFT , VehicleAreaSeat.SEAT_ROW_2_CENTER , VehicleAreaSeat.SEAT_ROW_2_RIGHT , VehicleAreaSeat.SEAT_ROW_3_LEFT , VehicleAreaSeat.SEAT_ROW_3_CENTER , or VehicleAreaSeat.SEAT_ROW_3_RIGHT |
getEvBatteryCapacity
public float getEvBatteryCapacity ()
Returns | |
---|---|
float |
Battery capacity of the car in Watt-Hour(Wh). Return 0 if car doesn't run on battery. |
getEvConnectorTypes
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
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
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
public String getVehicleId ()
This method was deprecated
in API level 29.
no support for car's identifier
Returns | |
---|---|
String |
always return empty string. |