Most visited

Recently visited

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

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

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

Object getItem ()

Get currently bound object.

Returns
Object

getPresenter

Presenter getPresenter ()

Get Presenter.

Returns
Presenter

getViewHolder

Presenter.ViewHolder getViewHolder ()

Get Presenter.ViewHolder.

Returns
Presenter.ViewHolder

setExtraObject

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

Hooray!