Webportal v1

embedded apps

API Reference - Car.fuelUnit

Car.fuelUnit

Type Event
wave 2
wave 3
wave 4

Event triggered when the fuel unit is changed.

Example

1
2
3
4
5
6
7
8
9
10
try {
	
	// Car
	if ((typeof Car !== "undefined") && (typeof Car.addEventListener !== "undefined")) {
		Car.addEventListener("fuelUnit", function(){
			alert("The fuel unit is now:" + Car.GetFuelUnit());
	}
}catch(e) {
	DealWithCarError(e);
}

Appeared in Software version 5.14.11.30