O Google tem o compromisso de promover a igualdade racial para as comunidades negras. Saiba como.

PlaybackTransportRowPresenter

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

A PlaybackTransportRowPresenter 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.PlaybackSupportFragment.

The detailed description is rendered using a Presenter passed in setDescriptionPresenter(Presenter). This can be an instance of AbstractDetailsDescriptionPresenter. The application can access the detailed description ViewHolder from ViewHolder#getDescriptionViewHolder().

Summary

Nested classes
open

A ViewHolder for the PlaybackControlsRow supporting seek UI.

Public constructors

Public methods
open Float

Get default seek increment if PlaybackSeekDataProvider is null.

open OnActionClickedListener!

Returns the listener for Action click events.

open Int

Returns the primary color for the progress bar.

open Int

Returns the secondary color for the progress bar.

open Unit

open Unit

Set default seek increment if PlaybackSeekDataProvider is null.

open Unit
setDescriptionPresenter(descriptionPresenter: Presenter!)

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
setSecondaryProgressColor(@ColorInt color: Int)

Sets the secondary color for the progress bar.

Protected methods
open RowPresenter.ViewHolder!

open Unit

open Unit

Client of progress bar is clicked, default implementation delegate click to PlayPauseAction.

open Unit

open Unit

open Unit

open Unit

Public constructors

<init>

PlaybackTransportRowPresenter()

Public methods

getDefaultSeekIncrement

open fun getDefaultSeekIncrement(): Float

Get default seek increment if PlaybackSeekDataProvider is null.

Return
Float float value between 0(inclusive) and 1(inclusive).

getOnActionClickedListener

open fun getOnActionClickedListener(): OnActionClickedListener!

Returns the listener for Action click events.

getProgressColor

@ColorInt open fun getProgressColor(): Int

Returns the primary color for the progress bar. If no color was set, transparent is returned.

getSecondaryProgressColor

@ColorInt open fun getSecondaryProgressColor():