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 Action
s.
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 | |
---|---|
Constructor for a PlaybackControlsRow that displays some details from the given item. |
|
<init>() Constructor for a PlaybackControlsRow that has no item details. |
Public methods | |
---|---|
open Action! |
getActionForKeyCode(keyCode: Int) 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 |
Any! |
getItem() Returns the main item for the details page. |
ObjectAdapter! |
Returns the primary actions |
ObjectAdapter! |
Returns the secondary actions |
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 |
setBufferedPosition(ms: Long) Sets the buffered progress for the playback controls row. |
open Unit |
setBufferedProgress(ms: Int) Sets the buffered progress for the playback controls row. |
open Unit |
Sets the buffered progress for the playback controls row. |
open Unit |
setCurrentPosition(ms: Long) Sets the current time in milliseconds for the playback controls row. |
open Unit |
setCurrentTime(ms: Int) Sets the current time in milliseconds for the playback controls row. |
open Unit |
setCurrentTimeLong(ms: Long) Sets the current time in milliseconds for playback controls row in long type. |
open Unit |
setDuration(ms: Long) Sets the total time in milliseconds (long type) for the playback controls row. |
Unit |
setImageBitmap(context: |