ItemList.OnSelectedListener
public
static
interface
ItemList.OnSelectedListener
androidx.car.app.model.ItemList.OnSelectedListener |
A listener for handling selection events for lists with selectable items.
Summary
Public methods | |
---|---|
abstract
void
|
onSelected(int selectedIndex)
Notifies that an item was selected. |
Public methods
onSelected
public abstract void onSelected (int selectedIndex)
Notifies that an item was selected.
This event is called even if the selection did not change, for example, if the user selected an already selected item.
Parameters | |
---|---|
selectedIndex |
int : the index of the newly selected item
|