Android 12 Developer Preview is here! Try it out, and give us your feedback!

PlaybackControlsRow

open class PlaybackControlsRow : Row
kotlin.Any
   ↳ androidx.leanback.widget.Row
   ↳ androidx.leanback.widget.PlaybackControlsRow

A Row of playback controls to be displayed by a PlaybackControlsRowPresenter. This row consists of some optional item detail, a series of primary actions, and an optional series of secondary actions.

Controls are specified via an ObjectAdapter containing one or more Actions.

Adapters should have their PresenterSelector set to an instance of ControlButtonPresenterSelector.

Summary

Nested classes
open

An action for displaying a CC (Closed Captioning) icon.

open

An action displaying an icon for fast forward.

open

An action for displaying a HQ (High Quality) icon.

open

An action displaying an icon for "more actions".

abstract

Base class for an action comprised of a series of icons.

open

Listener for progress or duration change.

open

An action displaying an icon for picture-in-picture.

open

An action displaying icons for play and pause.

open

An action for displaying three repeat states: none, one, or all.

open

An action displaying an icon for rewind.

open

An action for displaying a shuffle icon.

open

An action displaying an icon for skip next.

open

An action displaying an icon for skip previous.

abstract

A base class for displaying a thumbs action.

open

An action displaying an icon for thumbs down.

open

An action displaying an icon for thumbs up.

Public constructors
<init>(item: Any!)

Constructor for a PlaybackControlsRow that displays some details from the given item.

Constructor for a PlaybackControlsRow that has no item details.

Public methods
open Action!

Returns the Action associated with the given keycode, or null if no associated action exists.

open Action!
getActionForKeyCode(adapter: ObjectAdapter!, keyCode: Int)

Returns the Action associated with the given keycode, or null if no associated action exists.

open Long

Returns the buffered progress of long type for the playback controls row.

open Int

Returns the buffered progress for the playback controls row.

open Long

Returns the buffered progress of long type for the playback controls row.

open Long

Returns the current time in milliseconds of long type for playback controls row.

open Int

Returns the current time in milliseconds for the playback controls row.

open Long

Returns the current time in milliseconds of long type for playback controls row.

open Long

Returns duration in milliseconds.

Drawable!

Returns the image Drawable of this row.

Any!

Returns the main item for the details page.

ObjectAdapter!

Returns the primary actions ObjectAdapter.

ObjectAdapter!

Returns the secondary actions ObjectAdapter.

open Int

Returns the total time in milliseconds for the playback controls row.

open Long

Returns the total time in milliseconds of long type for the playback controls row.

open Unit

Sets the buffered progress for the playback controls row.

open Unit

Sets the buffered progress for the playback controls row.

open Unit

Sets the buffered progress for the playback controls row.

open Unit

Sets the current time in milliseconds for the playback controls row.

open Unit

Sets the current time in milliseconds for the playback controls row.

open Unit

Sets the current time in milliseconds for playback controls row in long type.

open Unit

Sets the total time in milliseconds (long type) for the playback controls row.

Unit