added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0

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

added in version 1.0.0
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.