API Reference - Device.GetHMITheme()
Device.GetHMITheme()
Device.GetHMITheme()
Description | Get the theme of the HMI |
Response | Number The number corresponding to the theme ID. Browse Ambience Section for a correspondence table. |
Parameter | Void |
Example
1
2
3
4
5
6
7
8
9
// Get vehicle brand
var vehicleBrand = Device.GetCarBrand()
// vehicleBrand = 1
// value 1 is Citroën
// Get Theme
var currentTheme = Device.GetHMITheme()
// currentTheme = 0
// for citroen, value 0 is theme Orange
Note: To retrieve HMI theme you need to know the vehicle brand first. You can use Device.GetCarBrand() to do so. Then you can use Device.GetHMITheme() and browse Ambience Section for a correspondence table.
Appeared in Software version 30.11.04.10