user UI theme + salesforve code example
Example: user UI theme + salesforve
public with sharing class UIThemeController {
@AuraEnabled
public static String getUIThemeDescription() {
String theme = UserInfo.getUiThemeDisplayed();
return theme;
}
}