Stay organized with collections
Save and categorize content based on your preferences.
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
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public methods
getDriverSeat
public int getDriverSeat ()
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 ()
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 ()
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. |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2024-04-11 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-11 UTC."]]