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.