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

ControlButtonPresenterSelector

public class ControlButtonPresenterSelector
extends PresenterSelector

java.lang.Object
   ↳ androidx.leanback.widget.PresenterSelector
     ↳ androidx.leanback.widget.ControlButtonPresenterSelector


Displays primary and secondary controls for a PlaybackControlsRow. Binds to items of type Action.

Summary

Public constructors

ControlButtonPresenterSelector()

Public methods

Presenter getPresenter(Object item)

Always returns the presenter for primary controls.

Presenter[] getPresenters()

Returns an array of all possible presenters.

Presenter getPrimaryPresenter()

Returns the presenter for primary controls.

Presenter getSecondaryPresenter()

Returns the presenter for secondary controls.

Inherited methods

Public constructors

ControlButtonPresenterSelector

public ControlButtonPresenterSelector ()

Public methods

getPresenter

public Presenter getPresenter (Object item)

Always returns the presenter for primary controls.

Parameters
item Object

Returns
Presenter

getPresenters

public Presenter[] getPresenters ()

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

Returns
Presenter[]

getPrimaryPresenter

public Presenter getPrimaryPresenter ()

Returns the presenter for primary controls.

Returns
Presenter

getSecondaryPresenter

public Presenter getSecondaryPresenter ()

Returns the presenter for secondary controls.

Returns
Presenter