ResourceList component with bulk actions

How to perform bulk actions on the selected items in REsourceList component.??

How the selected item id is retreived for the bulk actions??