Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

OnClickListener

interface OnClickListener
androidx.car.widget.CarMenuItem.OnClickListener

Interface definition for a callback to be invoked when a CarMenuItem is clicked.

Summary

Public methods

abstract Unit

Called when a CarMenuItem has been clicked, the CarMenuItem is passed in to support using one OnClickListener

Public methods

onClick

abstract fun onClick(item: CarMenuItem!): Unit

Called when a CarMenuItem has been clicked, the CarMenuItem is passed in to support using one OnClickListener

Parameters
item CarMenuItem!: The CarMenuItem that was clicked.