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 |
|---|
Public methods |
|
|---|---|
@Nullable Presenter |
getPresenter(@Nullable Object item)Always returns the presenter for primary controls. |
Presenter[] |
Returns an array of all possible presenters. |
Presenter |
Returns the presenter for primary controls. |
Presenter |
Returns the presenter for secondary controls. |
Public constructors
Public methods
getPresenter
public @Nullable Presenter getPresenter(@Nullable Object item)
Always returns the presenter for primary controls.
getPresenters
public Presenter[] getPresenters()
Returns an array of all possible presenters. The returned array should not be modified.
getPrimaryPresenter
Added in 1.1.0
public Presenter getPrimaryPresenter()
Returns the presenter for primary controls.
getSecondaryPresenter
Added in 1.1.0
public Presenter getSecondaryPresenter()
Returns the presenter for secondary controls.