GCKUIMediaButtonBarProtocol.h File
Media control button types.
- Since
- 3.1
Enumerator |
---|
GCKUIMediaButtonTypeNone |
No button, results in empty space at a button position.
|
GCKUIMediaButtonTypePlayPauseToggle |
A default button that toggles between play and pause states.
|
GCKUIMediaButtonTypeSkipNext |
A default "next" button.
When tapped, playback moves to the next media item in the queue. It becomes disabled if there is no next media item in the queue.
|
GCKUIMediaButtonTypeSkipPrevious |
A default "previous" button.
When tapped, playback moves to the previous media item in the queue. It becomes disabled if there is no previous media item in the queue.
|
GCKUIMediaButtonTypeRewind30Seconds |
A default "rewind 30 seconds" button.
When tapped, playback skips 30 seconds back in the currently playing media item.
|
GCKUIMediaButtonTypeForward30Seconds |
A default "forward 30 seconds" button.
When tapped, playback skips 30 seconds forward in the currently playing media item.
|
GCKUIMediaButtonTypeMuteToggle |
A default "mute toggle" button.
When tapped, the receiver's mute state is toggled.
|
GCKUIMediaButtonTypeClosedCaptions |
A default "closed captions" button.
When the button is tapped, the media tracks selection UI is displayed to the user.
|
GCKUIMediaButtonTypeStop |
A default "stop" button.
Whe the button is tapped, playback of the current media item is terminated on the receiver.
|
GCKUIMediaButtonTypeCustom |
A button created and managed by the client.
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[null,null,["Last updated 2024-09-18 UTC."],[[["This document details the `GCKUIMediaButtonBarProtocol` which provides a delegate protocol for managing media control buttons in Google Cast applications."],["It defines the `GCKUIMediaButtonType` enumeration, encompassing standard media control options like play/pause, skip, rewind, and volume, along with custom button capabilities."],["The enumeration provides various pre-defined button types, enabling developers to integrate standard media controls with ease and flexibility."],["Developers can create custom buttons to extend the functionality and tailor the user interface to specific application needs using the `GCKUIMediaButtonTypeCustom` type."]]],["The core content details the `GCKUIMediaButtonBarProtocol` and its associated media control button types. The protocol is a delegate protocol. The enumeration `GCKUIMediaButtonType` defines various button functionalities, including `PlayPauseToggle`, `SkipNext`, `SkipPrevious`, `Rewind30Seconds`, `Forward30Seconds`, `MuteToggle`, `ClosedCaptions`, and `Stop`. A `None` button and a `Custom` button are also defined, allowing for empty spaces or client-managed buttons respectively. Each button type has a specific function for media control.\n"]]