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
AbstractDetailsDescriptionPresenter.ViewHolder!

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

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

onCreateViewHolder

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

onBindViewHolder

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

onViewDetachedFromWindow

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

onUnbindViewHolder

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

onViewAttachedToWindow

open fun onViewAttachedToWindow(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.