Register now for Android Dev Summit 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.