M - Refers to the model classpublic interface OnSelectionChangedListener<M>
Mode.SINGLEfor possible values| Modifier and Type | Method and Description |
|---|---|
void |
onSelectionChanged(M item,
boolean isSelected,
java.util.List<M> selectedItems)
Called when the selection is changed.
|
void onSelectionChanged(M item, boolean isSelected, java.util.List<M> selectedItems)
Mode.SINGLE, selected items
will be provided as a list. If no item is selected, it will provide an empty list.item - Item which is currently selected / unselectedisSelected - Denotes whether the item was selected or unselectedselectedItems - List of selected items. It will be empty if no items are selected