An event dispatched by cast.framework.CastReceiverContext when the
visibility of the application changes - for instance, when the HDMI input
changes, or the TV is turned off.
Constructor
VisibilityChangedEvent
new
VisibilityChangedEvent(isVisible)
Parameter
isVisible
boolean
true when the Cast device is the active input,
false when not.
[[["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\u003eVisibilityChangedEvent\u003c/code\u003e is dispatched when the visibility of the Cast application changes, such as when the TV input is switched or the TV is powered off.\u003c/p\u003e\n"],["\u003cp\u003eIt provides a boolean property \u003ccode\u003eisVisible\u003c/code\u003e indicating whether the Cast device is the active input (\u003ccode\u003etrue\u003c/code\u003e) or not (\u003ccode\u003efalse\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThis event is an instance of \u003ccode\u003ecast.framework.system.Event\u003c/code\u003e and includes a \u003ccode\u003etype\u003c/code\u003e property to identify it.\u003c/p\u003e\n"]]],[],null,["# Class: VisibilityChangedEvent\n\ncast.[framework](/cast/docs/reference/web_receiver/cast.framework).[system](/cast/docs/reference/web_receiver/cast.framework.system).VisibilityChangedEvent\n===========================================================================================================================================================\n\nclass static\n\nAn event dispatched by [cast.framework.CastReceiverContext](/cast/docs/reference/web_receiver/cast.framework.CastReceiverContext) when the\nvisibility of the application changes - for instance, when the HDMI input\nchanges, or the TV is turned off.\n\nConstructor\n-----------\n\n### VisibilityChangedEvent\n\nnew\nVisibilityChangedEvent(isVisible)\n\n| #### Parameter ||\n|-----------|----------------------------------------------------------------------------|\n| isVisible | boolean `true` when the Cast device is the active input, `false` when not. |\n\nExtends\n: [cast.framework.system.Event](/cast/docs/reference/web_receiver/cast.framework.system.Event)\n\nProperties\n----------\n\n### isVisible\n\nboolean\n\n`true` when the Cast device is the active input, `false` when not.\n\n### type\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)"]]