类:SystemVolumeData
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\u003cp\u003e\u003ccode\u003eSystemVolumeData\u003c/code\u003e provides information about the system's current volume settings.\u003c/p\u003e\n"],["\u003cp\u003eIt includes properties for the volume level (ranging from 0.0 to 1.0) and mute status (true/false).\u003c/p\u003e\n"]]],["The `SystemVolumeData` class represents system volume information, containing two key properties. `level` is a number between 0.0 and 1.0 indicating the current volume level, with 0.5 representing half of the maximum volume. `muted` is a boolean value, set to `true` when the system volume is silenced. The `SystemVolumeData` is a constructor and is instantiated using `new SystemVolumeData()`.\n"],null,["# Class: SystemVolumeData\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[system](/cast/docs/reference/web_receiver/cast.framework.system).SystemVolumeData\n=====================================================================================================================================================\n\nclass static\n\nThis represents the system volume data.\n\nConstructor\n-----------\n\n### SystemVolumeData\n\nnew\nSystemVolumeData()\n\nProperties\n----------\n\n### level\n\nnumber\n\nThe system volume.\nThe value will be between `0.0` and `1.0.` For example, a value of\n`0.5` represents the volume set to half of its maximum.\n\n### muted\n\nboolean\n\n`true` when the system volume is muted."]]