Android Dev Summit, October 23-24: two days of technical content, directly from the Android team. Sign-up for livestream updates.

PresenterSelector

abstract class PresenterSelector
kotlin.Any
   ↳ 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

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

Public methods

abstract Presenter!
getPresenter(item: Any!)

Returns a presenter for the given item.

open Array<Presenter!>!

Returns an array of all possible presenters.

Public constructors

<init>

PresenterSelector()

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

Public methods

getPresenter

abstract fun getPresenter(item: Any!): Presenter!

Returns a presenter for the given item.

getPresenters

open fun getPresenters(): Array<Presenter!>!

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