Zdarzenie wywoływane przez cast.framework.CastReceiverContext w momencie zmiany widoczności aplikacji, np. po zmianie wejścia HDMI lub wyłączeniu telewizora.
Zespół
VisibilityChangedEvent
new
VisibilityChangedEvent(isvisible)
Parametr
isVisible
boolean
true, gdy aktywnym wejściem jest urządzenie przesyłające, false, gdy nie jest.
[[["Łatwo zrozumieć","easyToUnderstand","thumb-up"],["Rozwiązało to mój problem","solvedMyProblem","thumb-up"],["Inne","otherUp","thumb-up"]],[["Brak potrzebnych mi informacji","missingTheInformationINeed","thumb-down"],["Zbyt skomplikowane / zbyt wiele czynności do wykonania","tooComplicatedTooManySteps","thumb-down"],["Nieaktualne treści","outOfDate","thumb-down"],["Problem z tłumaczeniem","translationIssue","thumb-down"],["Problem z przykładami/kodem","samplesCodeIssue","thumb-down"],["Inne","otherDown","thumb-down"]],["Ostatnia aktualizacja: 2025-07-25 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,[]]