Register now for Android Dev Summit 2019!

ControlButtonPresenterSelector

open class ControlButtonPresenterSelector : PresenterSelector
kotlin.Any
   ↳ 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

Displays primary and secondary controls for a PlaybackControlsRow.

Public methods

open Presenter!
getPresenter(item: Any!)

Always returns the presenter for primary controls.

open Array<Presenter!>!

open Presenter!

Returns the presenter for primary controls.

open Presenter!

Returns the presenter for secondary controls.

Public constructors

<init>

ControlButtonPresenterSelector()

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

Public methods

getPresenter

open fun getPresenter(item: Any!): Presenter!

Always returns the presenter for primary controls.

getPresenters

open fun getPresenters(): Array<Presenter!>!

getPrimaryPresenter

open fun getPrimaryPresenter(): Presenter!

Returns the presenter for primary controls.

getSecondaryPresenter

open fun getSecondaryPresenter(): Presenter!

Returns the presenter for secondary controls.