Android APIs
public final class

ClassPresenterSelector

extends PresenterSelector
java.lang.Object
   ↳ android.support.v17.leanback.widget.PresenterSelector
     ↳ android.support.v17.leanback.widget.ClassPresenterSelector

Class Overview

A ClassPresenterSelector selects a Presenter based on the item's Java class.

Summary

Public Constructors
ClassPresenterSelector()
Public Methods
void addClassPresenter(Class<?> cls, Presenter presenter)
Adds a presenter to be used for the given class.
Presenter getPresenter(Object item)
Returns a presenter for the given item.
Presenter[] getPresenters()
Returns an array of all possible presenters.
[Expand]
Inherited Methods
From class android.support.v17.leanback.widget.PresenterSelector
From class java.lang.Object

Public Constructors

public ClassPresenterSelector ()

Public Methods

public void addClassPresenter (Class<?> cls, Presenter presenter)

Adds a presenter to be used for the given class.

public Presenter getPresenter (Object item)

Returns a presenter for the given item.

public Presenter[] getPresenters ()

Returns an array of all possible presenters. The returned array should not be modified.