Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

DrawerItemClickListener

interface DrawerItemClickListener
androidx.car.drawer.DrawerItemClickListener

Listener for handling clicks on items/views managed by DrawerItemViewHolder.

Summary

Public methods
abstract Unit
onItemClick(position: Int)

Callback when item is clicked.

Public methods

onItemClick

abstract fun onItemClick(position: Int): Unit

Callback when item is clicked.

Parameters
position Int: Adapter position of the clicked item.