Is there a way to identify whether the user is using Lightning Experience or classic? I have been using "UserInfo.getUIThemeDisplayed()
" and it used to give me value of "Theme3" for classic and "Theme4d" for Lightning Experience. Now it is giving me "Theme3" for both. Is there any other attribute which helps me determine the Lightning Experience Vs Classic. Winter '17 Salesfroce
User in Lightning Experience.
Apex Code.
system.debug(UserInfo.getUIThemeDisplayed());
system.debug(UserInfo.getUITheme());