Class: VisibilityChangedEvent

  • VisibilityChangedEvent is dispatched when the visibility of the Cast application changes, such as when the TV input is switched or the TV is powered off.

  • It provides a boolean property isVisible indicating whether the Cast device is the active input (true) or not (false).

  • This event is an instance of cast.framework.system.Event and includes a type property to identify it.

Constructor

VisibilityChangedEvent

new VisibilityChangedEvent(isVisible)

Parameter

isVisible

boolean

true when the Cast device is the active input, false when not.

Extends
cast.framework.system.Event

Properties

isVisible

boolean

true when the Cast device is the active input, false when not.

type

non-null cast.framework.system.EventType

The event type.

Inherited from
cast.framework.system.Event#type