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

CarMenuItem.OnClickListener

public static interface CarMenuItem.OnClickListener

androidx.car.widget.CarMenuItem.OnClickListener


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

Summary

Public methods

abstract void onClick(CarMenuItem item)

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

Public methods

onClick

public abstract void onClick (CarMenuItem item)

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.