com.google.android.gms.cast.framework.media.widget.ControlButtonsContainer |
Known Indirect Subclasses
ExpandedControllerActivity |
This abstract class provides most of the implementation of an expanded controller, which is an
out-of-the-box remote player, used when casting media to a cast device. |
MiniControllerFragment |
A fragment that provides remote control functionality. |
|
Class Overview
An interface that defines a container which holds a certain number of slots to show control
buttons.
Public Methods
public
abstract
ImageView
getButtonImageViewAt
(int slotIndex)
Returns the ImageView
of the button at slotIndex
in this container. The
ImageView
is defined in the layout of the Activity
which
implements this interface.
Parameters |
slotIndex |
int :
the index of the slot in this container. |
Throws |
IndexOutOfBoundsException |
if slotIndex is either negative or greater or equal
to the number of buttons slots.
|
public
abstract
int
getButtonSlotCount
()
Returns the number of slots to hold control buttons in this container.
public
abstract
int
getButtonTypeAt
(int slotIndex)
Returns the type of the button at slotIndex
in this container.
Button types are defined as one of the ID resources:
@id/cast_button_type_empty
: Not placing a button in this slot.
@id/cast_button_type_custom
: A custom button.
@id/cast_button_type_play_pause_toggle
: A button that toggles playback.
@id/cast_button_type_skip_previous
: A button that skips to the previous item
in the queue.
@id/cast_button_type_skip_next
: A button that skips to the next item in the
queue.
@id/cast_button_type_rewind_30_seconds
: A button that rewinds the playback
by 30 seconds.
@id/cast_button_type_forward_30_seconds
: A button that skips forward the
playback by 30 seconds.
@id/cast_button_type_mute_toggle
: A button that mutes and unmutes the remote
receiver.
@id/cast_button_type_closed_caption
: A button that opens a dialog to select
text and audio tracks.
Parameters |
slotIndex |
int :
the index of the slot in this container. |
Throws |
IndexOutOfBoundsException |
if slotIndex is either negative or greater or equal
to the number of buttons slots.
|