ClassPresenterSelector

public final class ClassPresenterSelector
extends PresenterSelector

java.lang.Object
   ↳ androidx.leanback.widget.PresenterSelector
     ↳ androidx.leanback.widget.ClassPresenterSelector


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

Summary

Public constructors

ClassPresenterSelector()

Public methods

ClassPresenterSelector addClassPresenter(Class<?> cls, Presenter presenter)

Sets a presenter to be used for the given class.

ClassPresenterSelector addClassPresenterSelector(Class<?> cls, PresenterSelector presenterSelector)

Sets a presenter selector 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.

Inherited methods