API Reference - Car.driverDistractionOff
Car.driverDistractionOff
Event triggered when the distraction status is changed to OFF (hide driver distraction popup).
Note: This event is triggered when the speed exceeds 5km/h.
Example
1
2
3
4
5
6
7
8
9
10
11
try {
// Car
if ((typeof Car !== "undefined") && (typeof Car.addEventListener !== "undefined")) {
Car.addEventListener("driverDistractionOff", function(){
alert("Driver distraction mode is now off");
});
}
}catch(e) {
DealWithCarError(e);
}
Appeared in Software version 5.14.11.30