added in version 22.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

ItemBridgeAdapter.ViewHolder

public class ItemBridgeAdapter.ViewHolder
extends RecyclerView.ViewHolder implements FacetProvider

java.lang.Object
   ↳ android.support.v7.widget.RecyclerView.ViewHolder
     ↳ android.support.v17.leanback.widget.ItemBridgeAdapter.ViewHolder


ViewHolder for the ItemBridgeAdapter.

Summary

Inherited fields

From class android.support.v7.widget.RecyclerView.ViewHolder

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

From class android.support.v7.widget.RecyclerView.ViewHolder
From class java.lang.Object
From interface android.support.v17.leanback.widget.FacetProvider

Public methods

getExtraObject

added in version 22.1.0
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

added in version 24.1.0
Object getFacet (Class<?> facetClass)

Queries optional implemented facet.

Parameters
facetClass Class: Facet classes to query, examples are: class of ItemAlignmentFacet.

Returns
Object Facet implementation for the facetClass or null if feature not implemented.

getItem

added in version 22.1.0
Object getItem ()

Get currently bound object.

Returns
Object

getPresenter

added in version 22.1.0
Presenter getPresenter ()

Get Presenter.

Returns
Presenter

getViewHolder

added in version 22.1.0
Presenter.ViewHolder getViewHolder ()

Get Presenter.ViewHolder.

Returns
Presenter.ViewHolder

setExtraObject

added in version 22.1.0
void setExtraObject (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.

Parameters
object Object