Class: SystemVolumeChangedEvent
Stay organized with collections
Save and categorize content based on your preferences.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-18 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-18 UTC."],[[["\u003cp\u003e\u003ccode\u003eSystemVolumeChangedEvent\u003c/code\u003e is dispatched when the system volume level is changed.\u003c/p\u003e\n"],["\u003cp\u003eIt provides the updated volume data through the \u003ccode\u003edata\u003c/code\u003e property, which is of type \u003ccode\u003eSystemVolumeData\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe event is initiated by \u003ccode\u003eCastReceiverContext\u003c/code\u003e and extends the \u003ccode\u003eEvent\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThis event's \u003ccode\u003etype\u003c/code\u003e property is set to \u003ccode\u003eEventType.SYSTEM_VOLUME_CHANGED\u003c/code\u003e.\u003c/p\u003e\n"]]],["The `SystemVolumeChangedEvent` is dispatched by `cast.framework.CastReceiverContext` when the system volume is altered. This event, extending `cast.framework.system.Event`, contains `SystemVolumeData`. The `SystemVolumeChangedEvent` constructor requires a non-null `SystemVolumeData` parameter. It has a 'data' property holding the volume information and a 'type' property indicating the event type, inherited from `cast.framework.system.Event`.\n"],null,["cast.[framework](/cast/docs/reference/web_receiver/cast.framework).[system](/cast/docs/reference/web_receiver/cast.framework.system).SystemVolumeChangedEvent \nclass static\n\nAn event dispatched by [cast.framework.CastReceiverContext](/cast/docs/reference/web_receiver/cast.framework.CastReceiverContext) when the\nsystem volume changes.\n\nConstructor\n\nSystemVolumeChangedEvent\n\nnew\nSystemVolumeChangedEvent(volume)\n\n| Parameter ||\n|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| volume | [cast.framework.system.SystemVolumeData](/cast/docs/reference/web_receiver/cast.framework.system.SystemVolumeData) The system volume data. Value must not be null. |\n\nExtends\n: [cast.framework.system.Event](/cast/docs/reference/web_receiver/cast.framework.system.Event)\n\nProperties\n\ndata\n\nnon-null [cast.framework.system.SystemVolumeData](/cast/docs/reference/web_receiver/cast.framework.system.SystemVolumeData)\n\nThe system volume data.\n\ntype\n\nnon-null [cast.framework.system.EventType](/cast/docs/reference/web_receiver/cast.framework.system#.EventType)\n\nThe event type.\n\nInherited from\n: [cast.framework.system.Event#type](/cast/docs/reference/web_receiver/cast.framework.system.Event#type)"]]