getSelection
getSelection: UnifiedSelectionState
Returns current selection. This is a different function each time selection at selectionLevel changes. The
returned KeySet object exposes global data and is mutable. If you need to pass information about the current
selection across React components, prefer UnifiedSelectionState over KeySet objects.
Defined in
Last Updated: 22 October, 2025
Found something wrong, missing, or unclear on this page? Raise an issue in our repo.