lightbulb_outline Please take our October 2018 developer survey. Start survey
added in version 22.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

PresenterSelector

public abstract class PresenterSelector
extends Object

java.lang.Object
   ↳ android.support.v17.leanback.widget.PresenterSelector
Known Direct Subclasses


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

From class java.lang.Object

Public constructors

PresenterSelector

added in version 22.1.0
PresenterSelector ()

Public methods

getPresenter

added in version 22.1.0
Presenter getPresenter (Object item)

Returns a presenter for the given item.

Parameters
item Object

Returns
Presenter

getPresenters

added in version 24.1.0
Presenter[] getPresenters ()

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

Returns
Presenter[]