Google 致力于为黑人社区推动种族平等。查看具体举措

PlaybackControlsRowPresenter

open class PlaybackControlsRowPresenter : PlaybackRowPresenter
kotlin.Any
   ↳ androidx.leanback.widget.Presenter
   ↳ androidx.leanback.widget.RowPresenter
   ↳ androidx.leanback.widget.PlaybackRowPresenter
   ↳ androidx.leanback.widget.PlaybackControlsRowPresenter

A PlaybackControlsRowPresenter renders a PlaybackControlsRow to display a series of playback control buttons. Typically this row will be the first row in a fragment such as the androidx.leanback.app.PlaybackFragment.

The detailed description is rendered using a Presenter passed in PlaybackControlsRowPresenter(Presenter). Typically this will be an instance of AbstractDetailsDescriptionPresenter. The application can access the detailed description ViewHolder from ViewHolder#mDescriptionViewHolder.

Summary

Nested classes
open

A ViewHolder for the PlaybackControlsRow.

Public constructors
<init>(descriptionPresenter: Presenter!)

Constructor for a PlaybackControlsRowPresenter.

Constructor for a PlaybackControlsRowPresenter.

Public methods
open Boolean

Returns true if secondary actions are hidden.

open Int

Returns the background color.

open OnActionClickedListener!

Returns the listener for Action click events.

open Int

Returns the primary color for the progress bar.

open Unit

open Unit
setBackgroundColor(@ColorInt color: Int)

Sets the background color.

open Unit

Sets the listener for Action click events.

open Unit
setProgressColor(@ColorInt color: Int)

Sets the primary color for the progress bar.

open Unit

Sets the secondary actions to be hidden behind a "more actions" button.

open Unit

Shows or hides space at the bottom of the playback controls row.

open Unit

Displays the primary actions.

Protected methods
open RowPresenter.ViewHolder!

open Unit

open Unit

open Unit

open Unit

open Unit

Public constructors

<init>

PlaybackControlsRowPresenter(descriptionPresenter: Presenter!)

Constructor for a PlaybackControlsRowPresenter.

Parameters
descriptionPresenter Presenter!: Presenter for displaying item details.

<init>

PlaybackControlsRowPresenter()

Constructor for a PlaybackControlsRowPresenter.

Public methods

areSecondaryActionsHidden

open fun areSecondaryActionsHidden(): Boolean

Returns true if secondary actions are hidden.

getBackgroundColor

@ColorInt open fun getBackgroundColor(): Int

Returns the background c