Android 11 デベロッパー プレビュー 2 が公開されました。ぜひお試しのうえ、フィードバックをお寄せください

BaseOnItemViewClickedListener

interface BaseOnItemViewClickedListener<T : Any!>
androidx.leanback.widget.BaseOnItemViewClickedListener

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

Summary

Public methods

abstract Unit
onItemClicked(itemViewHolder: Presenter.ViewHolder!, item: Any!, rowViewHolder: RowPresenter.ViewHolder!, row: T)

Called when an item inside a row gets clicked.

Public methods

onItemClicked

abstract fun onItemClicked(
    itemViewHolder: Presenter.ViewHolder!,
    item: Any!,
    rowViewHolder: RowPresenter.ViewHolder!,
    row: T
): Unit

Called when an item inside a row gets clicked.

Parameters
itemViewHolder Presenter.ViewHolder!: The view holder of the item that is clicked.
item Any!: 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.