public interface

CarMenuItem.OnClickListener

 androidx.car.widget.CarMenuItem.OnClickListener

Overview

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

Summary

Methods
public voidonClick(CarMenuItem item)

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

Methods

public void onClick(CarMenuItem item)

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

Parameters:

item: The CarMenuItem that was clicked.