GCKUIMediaController.h 文件
typedef NSString* _Nonnull(^ GCKUIValueFormatter)(const id value) |
GCKUIControlStateRepeatOff |
GCKUIButtonStateRepeatOff |
GCKUIControlStateRepeatAll |
GCKUIButtonStateRepeatAll |
GCKUIControlStateRepeatSingle |
GCKUIButtonStateRepeatSingle |
播放/暂停切换按钮的自定义 GCKUIMultistateButton 状态。
表示媒体正在播放并且是直播内容。
- 开始时间
- 4.0
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-02。
[null,null,["最后更新时间 (UTC):2023-12-02。"],[[["`GCKUIMediaController` provides UI controls for managing and displaying media playback on Cast receivers."],["The `GCKUIMediaControllerDelegate` protocol enables you to respond to media control events."],["`GCKUIValueFormatter` is a block for formatting values as strings in the UI."],["Several constants, including `GCKUIControlStateRepeatOff`, `GCKUIControlStateRepeatAll`, and `GCKUIControlStatePlay`, define UI states for controlling media playback."],["`GCKUIMultistateButton` provides support for buttons with multiple states, like play/pause and repeat modes."]]],["This document outlines the `GCKUIMediaController` for controlling media playback on a Cast receiver. It defines `GCKUIMediaController` class and its delegate protocol, `GCKUIMediaControllerDelegate`. It includes `GCKUIValueFormatter`, a typedef for formatting objects as strings. It defines variables for UI control states and multi-state button states related to repeat modes (off, all, single, shuffle) and play/pause toggles, such as `GCKUIControlStateRepeatOff`, `GCKUIButtonStatePlay` and `GCKUIButtonStatePlayLive`, with some being deprecated.\n"]]