GCKUIDeviceVolumeController.h 文件
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
静音切换按钮的 GCKUIMultistateButton 状态;对应于“静音开启”。
- 开始时间
- 4.0
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003eGCKUIDeviceVolumeController provides UI controls for managing a Cast receiver's volume and mute state.\u003c/p\u003e\n"],["\u003cp\u003eIt includes custom UIControlStates and GCKUIMultistateButton states to represent mute on/off.\u003c/p\u003e\n"],["\u003cp\u003eGCKUIControlStateMuteOff and GCKUIControlStateMuteOn are deprecated since version 3.0.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers should use GCKUIButtonStateMuteOff and GCKUIButtonStateMuteOn with GCKUIMultistateButton instead, available since version 4.0.\u003c/p\u003e\n"]]],[],null,["# GCKUIDeviceVolumeController.h File\n\n[Classes](#nested-classes) \\| [Variables](#var-members) \nGCKUIDeviceVolumeController.h File Reference \n\n|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Classes ------- ||\n| class | [GCKUIDeviceVolumeController](/cast/docs/reference/ios/interface_g_c_k_u_i_device_volume_controller) |\n| | A controller for UI views that are used to control or display the volume and mute state of a Cast receiver. [More...](/cast/docs/reference/ios/interface_g_c_k_u_i_device_volume_controller#details) |\n| ||\n\n|----------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Variables --------- ||\n| const UIControlState | [GCKUIControlStateMuteOff](/cast/docs/reference/ios/g_c_k_u_i_device_volume_controller_8h#a6c50cf3fa298b57d819155515b4ebc7a) |\n| | Custom [**UIControlState**](https://goo.gl/tZWsqZ) for the mute toggle button; corresponds to \"mute off\". [More...](#a6c50cf3fa298b57d819155515b4ebc7a) |\n| ||\n| const NSUInteger | [GCKUIButtonStateMuteOff](/cast/docs/reference/ios/g_c_k_u_i_device_volume_controller_8h#a3cc15ad588de9f0e1ebafc63213f2da9) |\n| | [GCKUIMultistateButton](/cast/docs/reference/ios/interface_g_c_k_u_i_multistate_button \"A subclass of UIButton that supports multiple states. \") state for the mute toggle button; corresponds to \"mute off\". [More...](#a3cc15ad588de9f0e1ebafc63213f2da9) |\n| ||\n| const UIControlState | [GCKUIControlStateMuteOn](/cast/docs/reference/ios/g_c_k_u_i_device_volume_controller_8h#a922bb39ba4a84f54143808ff082f2dee) |\n| | Custom [**UIControlState**](https://goo.gl/tZWsqZ) for the mute toggle button; corresponds to \"mute on\". [More...](#a922bb39ba4a84f54143808ff082f2dee) |\n| ||\n| const NSUInteger | [GCKUIButtonStateMuteOn](/cast/docs/reference/ios/g_c_k_u_i_device_volume_controller_8h#ad4002d3fafa4f30a3970a61bb55c68ca) |\n| | [GCKUIMultistateButton](/cast/docs/reference/ios/interface_g_c_k_u_i_multistate_button \"A subclass of UIButton that supports multiple states. \") state for the mute toggle button; corresponds to \"mute on\". [More...](#ad4002d3fafa4f30a3970a61bb55c68ca) |\n| ||\n\nVariable Documentation\n----------------------\n\n|--------------------------|\n| GCKUIControlStateMuteOff |\n\nCustom [**UIControlState**](https://goo.gl/tZWsqZ) for the mute toggle button; corresponds to \"mute off\".\n\n**[Deprecated:](/cast/docs/reference/ios/deprecated#_deprecated000042)**\n: Use GCKUIButtonStateMuteOff with [GCKUIMultistateButton](/cast/docs/reference/ios/interface_g_c_k_u_i_multistate_button \"A subclass of UIButton that supports multiple states. \").\n\n Since\n : 3.0\n\n|-------------------------|\n| GCKUIButtonStateMuteOff |\n\n[GCKUIMultistateButton](/cast/docs/reference/ios/interface_g_c_k_u_i_multistate_button \"A subclass of UIButton that supports multiple states. \") state for the mute toggle button; corresponds to \"mute off\".\n\nSince\n: 4.0 \n\n|-------------------------|\n| GCKUIControlStateMuteOn |\n\nCustom [**UIControlState**](https://goo.gl/tZWsqZ) for the mute toggle button; corresponds to \"mute on\".\n\n**[Deprecated:](/cast/docs/reference/ios/deprecated#_deprecated000043)**\n: Use GCKUIButtonStateMuteOn with [GCKUIMultistateButton](/cast/docs/reference/ios/interface_g_c_k_u_i_multistate_button \"A subclass of UIButton that supports multiple states. \").\n\n Since\n : 3.0\n\n|------------------------|\n| GCKUIButtonStateMuteOn |\n\nGCKUIMultistateButton state for the mute toggle button; corresponds to \"mute on\".\n\nSince\n: 4.0"]]