public class

ItemBridgeAdapter.ViewHolder

extends RecyclerView.ViewHolder

implements FacetProvider

 java.lang.Object

androidx.recyclerview.widget.RecyclerView.ViewHolder

↳androidx.leanback.widget.ItemBridgeAdapter.ViewHolder

Overview

ViewHolder for the ItemBridgeAdapter.

Summary

Fields
from RecyclerView.ViewHolderitemView
Methods
public final java.lang.ObjectgetExtraObject()

Get extra object associated with the view.

public java.lang.ObjectgetFacet(java.lang.Class<java.lang.Object> facetClass)

public final java.lang.ObjectgetItem()

Get currently bound object.

public final PresentergetPresenter()

Get Presenter.

public final Presenter.ViewHoldergetViewHolder()

Get Presenter.ViewHolder.

public voidsetExtraObject(java.lang.Object object)

Set extra object associated with the view.

from RecyclerView.ViewHoldergetAbsoluteAdapterPosition, getAdapterPosition, getBindingAdapter, getBindingAdapterPosition, getItemId, getItemViewType, getLayoutPosition, getOldPosition, getPosition, isRecyclable, setIsRecyclable, toString
from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Methods

public final Presenter getPresenter()

Get Presenter.

public final Presenter.ViewHolder getViewHolder()

Get Presenter.ViewHolder.

public final java.lang.Object getItem()

Get currently bound object.

public final java.lang.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.

public void setExtraObject(java.lang.Object object)

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.

public java.lang.Object getFacet(java.lang.Class<java.lang.Object> facetClass)