Phaser API Documentation


Member of: Phaser.Core

<static> VisibilityHandler(game)


The Visibility Handler is responsible for listening out for document level visibility change events. This includes visibilitychange if the browser supports it, and blur and focus events. It then uses the provided Event Emitter and fires the related events.


name type description
game Phaser.Game

The Game instance this Visibility Handler is working on.

Since: 3.0.0