PresenterSelector


abstract class PresenterSelector

Known direct subclasses
ClassPresenterSelector

A ClassPresenterSelector selects a Presenter based on the item's Java class.

ControlButtonPresenterSelector

Displays primary and secondary controls for a PlaybackControlsRow.

SinglePresenterSelector

A PresenterSelector that always returns the same Presenter.


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

Summary

Public constructors

Public functions

abstract Presenter?
getPresenter(item: Any?)

Returns a presenter for the given item.

Array<Presenter!>?

Returns an array of all possible presenters.

Public constructors

PresenterSelector

Added in 1.1.0
PresenterSelector()

Public functions

getPresenter

Added in 1.1.0
abstract fun getPresenter(item: Any?): Presenter?

Returns a presenter for the given item.

getPresenters

Added in 1.1.0
fun getPresenters(): Array<Presenter!>?

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