# cast.[framework](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework).[system](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.system).VisibilityChangedEvent

class static

An event dispatched by [cast.framework.CastReceiverContext](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.CastReceiverContext) when the
visibility of the application changes - for instance, when the HDMI input
changes, or the TV is turned off.

## 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](https://developers.google.com/cast/docs/reference/web_receiver/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](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.system#.EventType)

The event type.

Inherited from
:   [cast.framework.system.Event#type](https://developers.google.com/cast/docs/reference/web_receiver/cast.framework.system.Event#type)