java.lang.Object | ||
↳ | android.support.v17.leanback.widget.Row | |
↳ | android.support.v17.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
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PlaybackControlsRow.ClosedCaptioningAction | An action for displaying a CC (Closed Captioning) icon. | ||||||||||
PlaybackControlsRow.FastForwardAction | An action displaying an icon for fast forward. | ||||||||||
PlaybackControlsRow.HighQualityAction | An action for displaying a HQ (High Quality) icon. | ||||||||||
PlaybackControlsRow.MoreActions | An action displaying an icon for "more actions". | ||||||||||
PlaybackControlsRow.MultiAction | Base class for an action comprised of a series of icons. | ||||||||||
PlaybackControlsRow.PlayPauseAction | An action displaying icons for play and pause. | ||||||||||
PlaybackControlsRow.RepeatAction | An action for displaying three repeat states: none, one, or all. | ||||||||||
PlaybackControlsRow.RewindAction | An action displaying an icon for rewind. | ||||||||||
PlaybackControlsRow.ShuffleAction | An action for displaying a shuffle icon. | ||||||||||
PlaybackControlsRow.SkipNextAction | An action displaying an icon for skip next. | ||||||||||
PlaybackControlsRow.SkipPreviousAction | An action displaying an icon for skip previous. | ||||||||||
PlaybackControlsRow.ThumbsAction | A base class for displaying a thumbs action. | ||||||||||
PlaybackControlsRow.ThumbsDownAction | An action displaying an icon for thumbs down. | ||||||||||
PlaybackControlsRow.ThumbsUpAction | An action displaying an icon for thumbs up. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructor for a PlaybackControlsRow that displays some details from
the given item.
| |||||||||||
Constructor for a PlaybackControlsRow that has no item details.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Returns the buffered progress for the playback controls row.
| |||||||||||
Returns the current time in milliseconds for the playback controls row.
| |||||||||||
Gets the image
Drawable of this row.
| |||||||||||
Gets the main item for the details page.
| |||||||||||
Returns the playback state listener.
| |||||||||||
Returns the primary actions
ObjectAdapter .
| |||||||||||
Returns the secondary actions
ObjectAdapter .
| |||||||||||
Returns the total time in milliseconds for the playback controls row.
| |||||||||||
Sets the buffered progress for the playback controls row.
| |||||||||||
Sets the current time in milliseconds for the playback controls row.
| |||||||||||
Sets a
Bitmap for this row.
| |||||||||||
Sets a {link @Drawable} image for this row.
| |||||||||||
Sets a listener to be called when the playback state changes.
| |||||||||||
Sets the primary actions
ObjectAdapter .
| |||||||||||
Sets the secondary actions
ObjectAdapter .
| |||||||||||
Sets the total time in milliseconds for the playback controls row.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructor for a PlaybackControlsRow that displays some details from the given item.
item | The main item for the row. |
---|
Constructor for a PlaybackControlsRow that has no item details.
Returns the buffered progress for the playback controls row.
Returns the current time in milliseconds for the playback controls row.
Gets the image Drawable
of this row.
Returns the playback state listener.
Returns the secondary actions ObjectAdapter
.
Returns the total time in milliseconds for the playback controls row.
Sets the buffered progress for the playback controls row.
Sets the current time in milliseconds for the playback controls row.
Sets a Bitmap
for this row.
context | The context to retrieve display metrics from. |
---|---|
bm | The bitmap to set. |
Sets a {link @Drawable} image for this row.
drawable | The drawable to set. |
---|
Sets a listener to be called when the playback state changes.
Sets the primary actions ObjectAdapter
.
Sets the secondary actions ObjectAdapter
.
Sets the total time in milliseconds for the playback controls row.