How to get Name of the active screen?


Is there a way to get the name (or any other ID) for the current screen?

I know there is lv_scr_act(), but it doesn’t tell us the name of the screen?

For example, something like:

lv_obj_t * activeScreen = lv_scr_act();

if( lv_get_screen_name(activeScreen) == "ui_S2") 

Thanks in advance

Maybe try this.