ItemList.OnSelectedListener


interface ItemList.OnSelectedListener


A listener for handling selection events for lists with selectable items.

Summary

Public functions

Unit
onSelected(selectedIndex: Int)

Notifies that an item was selected.

Public functions

onSelected

Added in 1.0.0
fun onSelected(selectedIndex: Int): Unit

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