Class: VisibilityChangedEvent

  • VisibilityChangedEvent is dispatched by cast.framework.CastReceiverContext when the application's visibility changes due to factors like HDMI input changes or the TV being turned off.

  • The constructor VisibilityChangedEvent(isVisible) takes a boolean parameter isVisible indicating whether the Cast device is the active input.

  • The isVisible property is a boolean that is true when the Cast device is the active input and false otherwise.

  • The type property, inherited from cast.framework.system.Event, indicates the event type.

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