added in version 22.1.0
belongs to Maven artifact com.android.support:leanback-v17:28.0.0-alpha1

ControlButtonPresenterSelector

public class ControlButtonPresenterSelector
extends PresenterSelector

java.lang.Object
   ↳ android.support.v17.leanback.widget.PresenterSelector
     ↳ android.support.v17.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

From class android.support.v17.leanback.widget.PresenterSelector
From class java.lang.Object

Public constructors

ControlButtonPresenterSelector

added in version 22.1.0
ControlButtonPresenterSelector ()

Public methods

getPresenter

added in version 22.1.0
Presenter getPresenter (Object item)

Always returns the presenter for primary controls.

Parameters
item Object

Returns
Presenter

getPresenters

added in version 24.1.0
Presenter[] getPresenters ()

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

Returns
Presenter[]

getPrimaryPresenter

added in version 22.1.0
Presenter getPrimaryPresenter ()

Returns the presenter for primary controls.

Returns
Presenter

getSecondaryPresenter

added in version 22.1.0
Presenter getSecondaryPresenter ()

Returns the presenter for secondary controls.

Returns
Presenter