[null,null,["最后更新时间 (UTC):2025-07-25。"],[[["\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)"]]