Peristiwa yang dikirimkan oleh cast.framework.CastReceiverContext saat
visibilitas aplikasi berubah - misalnya, saat input HDMI
berubah, atau TV dimatikan.
Konstruktor
VisibilityChangedEvent
baru
VisibilityChangedEvent(isVisible)
Parameter
isVisible
boolean
true jika perangkat Transmisi adalah input aktif,
false jika tidak.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 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,[]]