類別:SystemVolumeData
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-25 (世界標準時間)。
[null,null,["上次更新時間: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."]]