Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

AbstractDetailsDescriptionPresenter

abstract class AbstractDetailsDescriptionPresenter : Presenter
kotlin.Any
   ↳ androidx.leanback.widget.Presenter
   ↳ androidx.leanback.widget.AbstractDetailsDescriptionPresenter

An abstract Presenter for rendering a detailed description of an item. Typically this Presenter will be used in a DetailsOverviewRowPresenter or PlaybackControlsRowPresenter.

Subclasses must override onBindDescription to implement the data binding for this Presenter.

Summary

Nested classes

open

The ViewHolder for the AbstractDetailsDescriptionPresenter.

Public constructors

An abstract Presenter for rendering a detailed description of an item.

Public methods

Unit
onBindViewHolder(viewHolder: Presenter.ViewHolder!, item: Any!)

AbstractDetailsDescriptionPresenter.ViewHolder!

open Unit

open Unit

open Unit

Protected methods

abstract Unit

Binds the data from the item to the ViewHolder.

Inherited functions

Public constructors

<init>

AbstractDetailsDescriptionPresenter()

An abstract Presenter for rendering a detailed description of an item. Typically this Presenter will be used in a DetailsOverviewRowPresenter or PlaybackControlsRowPresenter.

Subclasses must override onBindDescription to implement the data binding for this Presenter.

Public methods

onBindViewHolder

fun onBindViewHolder(viewHolder: Presenter.ViewHolder!, item: Any!): Unit

onCreateViewHolder

fun onCreateViewHolder(parent: ViewGroup!): AbstractDetailsDescriptionPresenter.ViewHolder!

onUnbindViewHolder

open fun onUnbindViewHolder(viewHolder: Presenter.ViewHolder!): Unit

onViewAttachedToWindow

open fun onViewAttachedToWindow(holder: Presenter.ViewHolder!): Unit

onViewDetachedFromWindow

open fun onViewDetachedFromWindow(holder: Presenter.ViewHolder!): Unit

Protected methods

onBindDescription

protected abstract fun onBindDescription(vh: AbstractDetailsDescriptionPresenter.ViewHolder!, item: Any!): Unit

Binds the data from the item to the ViewHolder. The item is typically associated with a DetailsOverviewRow or PlaybackControlsRow.

Parameters
vh AbstractDetailsDescriptionPresenter.ViewHolder!: The ViewHolder for this details description view.
item AbstractDetailsDescriptionPresenter.ViewHolder!: The item being presented.