Presenter.ViewHolder
public
static
class
Presenter.ViewHolder
extends Object
implements
FacetProvider
java.lang.Object
|
↳ |
androidx.leanback.widget.Presenter.ViewHolder
|
Known indirect subclasses
|
ViewHolder can be subclassed and used to cache any view accessors needed
to improve binding performance (for example, results of findViewById)
without needing to subclass a View.
Summary
Public methods |
final
Object
|
getFacet(Class<?> facetClass)
Queries optional implemented facet.
|
final
void
|
setFacet(Class<?> facetClass, Object facetImpl)
Sets dynamic implemented facet in addition to basic ViewHolder functions.
|
Inherited methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
|
Fields
view
public final View view
Public constructors
ViewHolder
public ViewHolder (View view)
Public methods
getFacet
public final 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.
|
setFacet
public final void setFacet (Class<?> facetClass,
Object facetImpl)
Sets dynamic implemented facet in addition to basic ViewHolder functions.
Parameters |
facetClass |
Class : Facet classes to query, can be class of ItemAlignmentFacet . |
facetImpl |
Object : Facet implementation.
|