AI-generated Key Takeaways
-
GCKUIPlayPauseToggleController is a class for implementing custom play/pause UI when a GCKUIMultistateButton is insufficient.
-
Applications can subclass GCKUIPlayPauseToggleController and override
playPauseStateandinputEnabledsetters, or use KVO to listen for changes to these properties to update UI controls. -
The
playPauseStateproperty reflects the current play/pause state of the GCKRemoteMediaClient. -
The
inputEnabledproperty is used by GCKUIMediaController to enable or disable the UI control(s) managed by this controller.
Overview
A class that can be used to implement a custom play/pause toggle UI, in situations where a GCKUIMultistateButton will not suffice.
The application may either subclass this class and override the GCKUIPlayPauseToggleController::playPauseState and GCKUIPlayPauseToggleController::inputEnabled setters, or use KVO to listen for changes to these properties, and update its play/pause UI control(s) accordingly.
- Since
- 3.4
Inherits NSObject.
Instance Method Summary | |
| (instancetype) | - init |
| Designated initializer. More... | |
Property Summary | |
| GCKUIPlayPauseState | playPauseState |
| The current play/pause state of the GCKRemoteMediaClient. More... | |
| BOOL | inputEnabled |
| The GCKUIMediaController writes this property to enable or disable the UI control(s) managed by this controller. More... | |
Method Detail
| - (instancetype) init |
Designated initializer.
Property Detail
|
readwritenonatomicassign |
The current play/pause state of the GCKRemoteMediaClient.
The GCKUIMediaController writes this property whenever the receiver's play/pause state changes. It observes the property (unless it is in the process of writing it) and if it changes, it issues the appropriate media command with the GCKRemoteMediaClient to change the receiver's player state accordingly.
|
readwritenonatomicassign |
The GCKUIMediaController writes this property to enable or disable the UI control(s) managed by this controller.
Media-related UI controls are temporarily disabled while a media command is in-flight.