ViewHolder

open class ViewHolder : FacetProvider
kotlin.Any
   ↳ androidx.leanback.widget.ItemBridgeAdapter.ViewHolder

ViewHolder for the ItemBridgeAdapter.

Summary

Public methods
Presenter!

Get Presenter.

open Any!
getFacet(facetClass: Class<*>!)

open Unit
setExtraObject(object: Any!)

Set extra object associated with the view.

Any!

Get currently bound object.

Any!

Get extra object associated with the view.

Presenter.ViewHolder!

Get Presenter.ViewHolder.

Public methods

getPresenter

fun getPresenter(): Presenter!

Get Presenter.

getFacet

open fun getFacet(facetClass: Class<*>!): Any!

setExtraObject

open fun setExtraObject(object: Any!): Unit

Set extra object associated with the view. Developer can attach any customized UI object in addition to Presenter.ViewHolder. A typical use case is attaching an animator object.

getItem

fun getItem(): Any!

Get currently bound object.

getExtraObject

fun getExtraObject(): Any!

Get extra object associated with the view. Developer can attach any customized UI object in addition to Presenter.ViewHolder. A typical use case is attaching an animator object.

getViewHolder

fun getViewHolder(): Presenter.ViewHolder!

Get Presenter.ViewHolder.