Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.
Android 0.0.0 Developer Preview
belongs to Maven artifact androidx.leanback:leanback:1.1.0-alpha01

BaseOnItemViewClickedListener

public interface BaseOnItemViewClickedListener

androidx.leanback.widget.BaseOnItemViewClickedListener<T>


Interface for receiving notification when an item view holder is clicked.

Summary

Public methods

abstract void onItemClicked(Presenter.ViewHolder itemViewHolder, Object item, RowPresenter.ViewHolder rowViewHolder, T row)

Called when an item inside a row gets clicked.

Public methods

onItemClicked

public abstract void onItemClicked (Presenter.ViewHolder itemViewHolder, 
                Object item, 
                RowPresenter.ViewHolder rowViewHolder, 
                T row)

Called when an item inside a row gets clicked.

Parameters
itemViewHolder Presenter.ViewHolder: The view holder of the item that is clicked.

item Object: The item that is currently selected.

rowViewHolder RowPresenter.ViewHolder: The view holder of the row which the clicked item belongs to.

row T: The row which the clicked item belongs to.