מחלקה: SystemVolumeChangedEvent
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-07-25 (שעון 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)"]]