Phaser API Documentation

  Version: 
<readonly> inFocus: boolean

Description:

Is the browser currently considered in focus by the Page Visibility API? This value is set in the blur method, which is called automatically by the Game instance.

Type:
boolean
Default: true
Since: 3.0.0
Source: src/core/TimeStep.js (Line 233)