API Reference - Car.GetDrivingState()
Car.GetDrivingState()
Car.GetDrivingState()
Description | Determines whether the user is driving their car or not. |
Response | Boolean True if the speed is higher than 5km/h (default value), else False . |
Parameter | Void |
Example
1
2
3
4
5
if (Car.GetDrivingState() == false) {
Startapplication()
} else {
DisplayDrivingWarning()
}
Remark
Note: The 5km/h limit to delimit the driving states can be changed by diagnostic.
Appeared in Software version 5.14.11.30