List with multiple selection

It is possible to make buttons in the list ‘checkable’. It is also done in the demo. But how to get the list of checked items? Only by iterating through all the buttons and checking them manually?

I’m asking this because iterating over a collection of buttons and manually checking their states seems strange, because List has such function as lv_list_get_btn_selected.

lv_list_get_btn_selected is used only when navigating with keyboard or encoder.

Iterating through the buttons is the intended solution here. You can use lv_list_get_next_btn for this purpose.