Phaser API Documentation

  Version: 

Member of: Phaser.Game

<readonly> hasFocus: boolean

Description:

Does the window the game is running in currently have focus or not? This is modified by the VisibilityHandler.

Type:
boolean
Since: 3.9.0
Source: src/core/Game.js (Line 331)