ViewHolder

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

ViewHolder for the ItemBridgeAdapter.

Summary

Public methods
Any!

Get currently bound object.

open Unit
setExtraObject(object: Any!)

Set extra object associated with the view.

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

Presenter.ViewHolder!

Get Presenter.ViewHolder.

Presenter!

Get Presenter.

Any!

Get extra object associated with the view.

Inherited functions
Inherited properties

Public methods

getItem

fun getItem(): Any!

Get currently bound object.

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.

getFacet

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

getViewHolder

fun getViewHolder(): Presenter.ViewHolder!

Get Presenter.ViewHolder.

getPresenter

fun getPresenter(): Presenter!

Get Presenter.

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.