FuelType

public final class FuelType
extends Object

java.lang.Object
   ↳ android.car.FuelType


FuelType denotes the different fuels a vehicle may use.

Summary

Constants

int BIODIESEL

Biodiesel

int CNG

Compressed natural gas

int DIESEL_1

#1 Grade Diesel

int DIESEL_2

#2 Grade Diesel

int E85

85% ethanol/gasoline blend

int ELECTRIC

Electric

int HYDROGEN

Hydrogen fuel cell

int LEADED

Leaded gasoline

int LNG

Liquified natural gas

int LPG

Liquified petroleum gas

int OTHER

Fuel type to use when no other types apply.

int UNKNOWN

List of Fuel Types from VHAL

int UNLEADED

Unleaded gasoline

Inherited methods

Constants

BIODIESEL

Added in API level 29
public static final int BIODIESEL

Biodiesel

Constant Value: 5 (0x00000005)

CNG

Added in API level 29
public static final int CNG

Compressed natural gas

Constant Value: 8 (0x00000008)

DIESEL_1

Added in API level 29
public static final int DIESEL_1

#1 Grade Diesel

Constant Value: 3 (0x00000003)

DIESEL_2

Added in API level 29
public static final int DIESEL_2

#2 Grade Diesel

Constant Value: 4 (0x00000004)

E85

Added in API level 29
public static final int E85

85% ethanol/gasoline blend

Constant Value: 6 (0x00000006)

ELECTRIC

Added in API level 29
public static final int ELECTRIC

Electric

Constant Value: 10 (0x0000000a)

HYDROGEN

Added in API level 29
public static final int HYDROGEN

Hydrogen fuel cell

Constant Value: 11 (0x0000000b)

LEADED

Added in API level 29
public static final int LEADED

Leaded gasoline

Constant Value: 2 (0x00000002)

LNG

Added in API level 29
public static final int LNG

Liquified natural gas

Constant Value: 9 (0x00000009)

LPG

Added in API level 29
public static final int LPG

Liquified petroleum gas

Constant Value: 7 (0x00000007)

OTHER

Added in API level 29
public static final int OTHER

Fuel type to use when no other types apply. Before using this value, work with Google to see if the FuelType enum can be extended with an appropriate value.

Constant Value: 12 (0x0000000c)

UNKNOWN

Added in API level 29
public static final int UNKNOWN

List of Fuel Types from VHAL

Constant Value: 0 (0x00000000)

UNLEADED

Added in API level 29
public static final int UNLEADED

Unleaded gasoline

Constant Value: 1 (0x00000001)