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 | |
---|---|
<init>() |
Public methods | |
---|---|
open Float |
Get default seek increment if |
open OnActionClickedListener! |
Returns the listener for |
open Int |
Returns the primary color for the progress bar. |
open Int |
Returns the secondary color for the progress bar. |
open Unit |
onReappear(rowViewHolder: RowPresenter.ViewHolder!) |
open Unit |
setDefaultSeekIncrement(ratio: Float) Set default seek increment if |
open Unit |
setDescriptionPresenter(descriptionPresenter: Presenter!) |
open Unit |
setOnActionClickedListener(listener: OnActionClickedListener!) Sets the listener for |
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! |
createRowViewHolder(parent: ViewGroup!) |
open Unit |
onBindRowViewHolder(holder: RowPresenter.ViewHolder!, item: Any!) |
open Unit |
Client of progress bar is clicked, default implementation delegate click to PlayPauseAction. |
open Unit | |
open Unit | |
open Unit |
onRowViewSelected(vh: RowPresenter.ViewHolder!, selected: Boolean) |
open Unit |
onUnbindRowViewHolder(holder: RowPresenter.ViewHolder!) |
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(): Int
Returns the secondary color for the progress bar. If no color w