AI-generated Key Takeaways
-
This file defines the
GCKUIMediaControllerclass and the<GCKUIMediaControllerDelegate>protocol, which are used for controlling and displaying the status of Cast media playback. -
It includes a typedef,
GCKUIValueFormatter, which is a block for formatting arbitrary objects into strings. -
The file also lists various
UIControlStateandGCKUIButtonStatevariables for customizing the states of UI buttons related to repeat modes and play/pause functionality, with someUIControlStatevariables being deprecated in favor ofGCKUIButtonStatesince version 4.0.
Classes | |
| class | GCKUIMediaController |
| A controller for UI views that are used to control or display the status of media playback on a Cast receiver. More... | |
| protocol | <GCKUIMediaControllerDelegate> |
| The GCKUIMediaController delegate protocol. More... | |
Typedefs | |
| typedef NSString *_Nonnull(^ | GCKUIValueFormatter )(const id value) |
| A block for formatting an arbitrary object as an NSString. More... | |
Variables | |
| const UIControlState | GCKUIControlStateRepeatOff |
| Custom UIControlState for the repeat mode button. More... | |
| const NSUInteger | GCKUIButtonStateRepeatOff |
| GCKUIMultistateButton state for the repeat mode button. More... | |
| const UIControlState | GCKUIControlStateRepeatAll |
| Custom UIControlState for the repeat mode button. More... | |
| const NSUInteger | GCKUIButtonStateRepeatAll |
| GCKUIMultistateButton state for the repeat mode button. More... | |
| const UIControlState | GCKUIControlStateRepeatSingle |
| Custom UIControlState for the repeat mode button. More... | |
| const NSUInteger | GCKUIButtonStateRepeatSingle |
| GCKUIMultistateButton state for the repeat mode button. More... | |
| const UIControlState | GCKUIControlStateShuffle |
| Custom UIControlState for the repeat mode button. More... | |
| const NSUInteger | GCKUIButtonStateShuffle |
| GCKUIMultistateButton state for the repeat mode button. More... | |
| const UIControlState | GCKUIControlStatePlay |
| Custom UIControlState for the play/pause toggle button. More... | |
| const NSUInteger | GCKUIButtonStatePlay |
| GCKUIMultistateButton state for the play/pause toggle button. More... | |
| const UIControlState | GCKUIControlStatePause |
| Custom UIControlState for the play/pause toggle button. More... | |
| const NSUInteger | GCKUIButtonStatePause |
| GCKUIMultistateButton state for the play/pause toggle button. More... | |
| const NSUInteger | GCKUIButtonStatePlayLive |
| Custom GCKUIMultistateButton state for the play/pause toggle button. More... | |
Typedef Documentation
| typedef NSString* _Nonnull(^ GCKUIValueFormatter)(const id value) |
A block for formatting an arbitrary object as an NSString.
- Since
- 3.0
Variable Documentation
| GCKUIControlStateRepeatOff |
Custom UIControlState for the repeat mode button.
Corresponds to GCKMediaRepeatModeOff.
- Deprecated:
- Use GCKUIButtonStateRepeatOff with GCKUIMultistateButton.
- Since
- 3.0
| GCKUIButtonStateRepeatOff |
GCKUIMultistateButton state for the repeat mode button.
Corresponds to GCKMediaRepeatModeOff.
- Since
- 4.0
| GCKUIControlStateRepeatAll |
Custom UIControlState for the repeat mode button.
Corresponds to GCKMediaRepeatModeAll.
- Deprecated:
- Use GCKUIButtonStateRepeatAll with GCKUIMultistateButton.
- Since
- 3.0
| GCKUIButtonStateRepeatAll |
GCKUIMultistateButton state for the repeat mode button.
Corresponds to GCKMediaRepeatModeAll.
- Since
- 4.0
| GCKUIControlStateRepeatSingle |
Custom UIControlState for the repeat mode button.
Corresponds to GCKMediaRepeatModeSingle.
- Deprecated:
- Use GCKUIButtonStateRepeatSingle with GCKUIMultistateButton.
- Since
- 3.0
| GCKUIButtonStateRepeatSingle |
GCKUIMultistateButton state for the repeat mode button.
Corresponds to GCKMediaRepeatModeSingle.
- Since
- 4.0
| GCKUIControlStateShuffle |
Custom UIControlState for the repeat mode button.
Corresponds to GCKMediaRepeatModeAllAndShuffle.
- Deprecated:
- Use GCKUIButtonStateShuffle with GCKUIMultistateButton.
- Since
- 3.0
| GCKUIButtonStateShuffle |
GCKUIMultistateButton state for the repeat mode button.
Corresponds to GCKMediaRepeatModeAllAndShuffle.
- Since
- 4.0
| GCKUIControlStatePlay |
Custom UIControlState for the play/pause toggle button.
Indicates media is playing.
- Deprecated:
- Use GCKUIButtonStatePlay with GCKUIMultistateButton.
- Since
- 3.0
| GCKUIButtonStatePlay |
| GCKUIControlStatePause |
Custom UIControlState for the play/pause toggle button.
Indicates media is paused.
- Deprecated:
- Use GCKUIButtonStatePause with GCKUIMultistateButton.
- Since
- 3.0
| GCKUIButtonStatePause |
| GCKUIButtonStatePlayLive |
Custom GCKUIMultistateButton state for the play/pause toggle button.
Indicates media is playing and is live.
- Since
- 4.0