ItemBridgeAdapter.ViewHolder

public static class ItemBridgeAdapter.ViewHolder
extends RecyclerView.ViewHolder implements FacetProvider

java.lang.Object
   ↳ androidx.recyclerview.widget.RecyclerView.ViewHolder
     ↳ androidx.leanback.widget.ItemBridgeAdapter.ViewHolder


ViewHolder for the ItemBridgeAdapter.

Summary

Inherited fields

Public methods

final Object getExtraObject()

Get extra object associated with the view.

Object getFacet(Class<?> facetClass)

Queries optional implemented facet.

final Object getItem()

Get currently bound object.

final Presenter getPresenter()

Get Presenter.

final Presenter.ViewHolder getViewHolder()

Get Presenter.ViewHolder.

void setExtraObject(Object object)

Set extra object associated with the view.

Inherited methods

Public methods

getExtraObject

public final Object getExtraObject ()

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.

Returns
Object

getFacet

public Object getFacet (Class<?> facetClass)

Queries optional implemented facet.