Most visited

Recently visited

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

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[]

Hooray!