With multi-selection enabled, how do I find all Selected?

With multi-selection enabled, how do I find all selected items in the tree?
I was looking for something analagous to getAllChecked but I can’t seem to locate anything in the API that works.

tree.getSelectedItemId will work for multi-select as well ( it will return comma separated list of ids, in case of multiple items )

Thank you very much.