PresenterSelector


public 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 methods

abstract @Nullable Presenter

Returns a presenter for the given item.

@Nullable Presenter[]

Returns an array of all possible presenters.

Public constructors

PresenterSelector

Added in 1.1.0
public PresenterSelector()

Public methods

getPresenter

Added in 1.1.0
public abstract @Nullable Presenter getPresenter(@Nullable Object item)

Returns a presenter for the given item.

getPresenters

Added in 1.1.0
public @Nullable Presenter[] getPresenters()

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