Webportal v1

embedded apps

API Reference - Device.GetHMITheme()

Device.GetHMITheme()

Type Method
Min Privacy Full
wave 2
wave 3
wave 4

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