belongs to Maven artifact androidx.leanback:leanback:1.0.0-alpha1

PresenterSelector

public abstract class PresenterSelector
extends Object

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


A PresenterSelector is used to obtain a Presenter for a given Object. Similar to Presenter, PresenterSelector is stateless.

Summary

Public constructors

PresenterSelector()

Public methods

abstract Presenter getPresenter(Object item)

Returns a presenter for the given item.

Presenter[] getPresenters()

Returns an array of all possible presenters.

Inherited methods

Public constructors

PresenterSelector

PresenterSelector ()

Public methods

getPresenter

Presenter getPresenter (Object item)

Returns a presenter for the given item.

Parameters
item Object

Returns
Presenter

getPresenters

Presenter[] getPresenters ()

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

Returns
Presenter[]