رویدادی که توسط cast.framework.CastReceiverContext ارسال میشود زمانی که نمایان بودن برنامه تغییر میکند - به عنوان مثال، وقتی ورودی HDMI تغییر میکند یا تلویزیون خاموش میشود.
سازنده
VisibilityChangedEvent
جدید VisibilityChangedEvent(visible)
پارامتر
قابل مشاهده است
بولی
true زمانی که دستگاه Cast ورودی فعال است، false زمانی که نیست.
تاریخ آخرین بهروزرسانی 2025-07-24 بهوقت ساعت هماهنگ جهانی.
[[["درک آسان","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-24 بهوقت ساعت هماهنگ جهانی."],[[["\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,["cast.[framework](/cast/docs/reference/web_receiver/cast.framework).[system](/cast/docs/reference/web_receiver/cast.framework.system).VisibilityChangedEvent \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\nVisibilityChangedEvent\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\nisVisible\n\nboolean\n\n`true` when the Cast device is the active input, `false` when not.\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)"]]