getSelectedItemId

Returns the currently selected menu item ID, or zero if there is no menu.

See also