SinglePresenterSelector


class SinglePresenterSelector : PresenterSelector


A PresenterSelector that always returns the same Presenter. Useful for rows of items of the same type that are all rendered the same way.

Summary

Public constructors

Public functions

Presenter?
getPresenter(item: Any?)

Returns a presenter for the given item.

Array<Presenter!>

Returns an array of all possible presenters.

Public constructors

SinglePresenterSelector

Added in 1.1.0
SinglePresenterSelector(presenter: Presenter)
Parameters
presenter: Presenter

The Presenter to return for every item.

Public functions

getPresenter

Added in 1.2.0-alpha04
fun getPresenter(item: Any?): Presenter?

Returns a presenter for the given item.

getPresenters

fun getPresenters(): Array<Presenter!>

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