Phaser API Documentation

  Version: 

Member of: Phaser.Core

<static> VisibilityHandler(game)

Description:

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.

Parameters:

name type description
game Phaser.Game

The Game instance this Visibility Handler is working on.

Since: 3.0.0