added in version 1.0.0
belongs to Maven artifact androidx.leanback:leanback:1.0.0-beta01

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

added in version 1.0.0
public PresenterSelector ()

Public methods

getPresenter

added in version 1.0.0
public abstract Presenter getPresenter (Object item)

Returns a presenter for the given item.

Parameters
item Object

Returns
Presenter

getPresenters

added in version 1.0.0
public Presenter[] getPresenters ()

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

Returns
Presenter[]