Scope: static
Source: src/device/index.js#L12
Since: 3.0.0
Static functions
Audio
Audio
Description:
Determines the audio playback capabilities of the device running this Phaser Game instance.
These values are read-only and populated during the boot sequence of the game.
They are then referenced by internal game systems and are available for you to access
via this.sys.game.device.audio
from within any Scene.
Source: src/device/Audio.js#L9
Since: 3.0.0
Browser
Browser
Description:
Determines the browser type and version running this Phaser Game instance.
These values are read-only and populated during the boot sequence of the game.
They are then referenced by internal game systems and are available for you to access
via this.sys.game.device.browser
from within any Scene.
Source: src/device/Browser.js#L9
Since: 3.0.0
CanvasFeatures
CanvasFeatures
Description:
Determines the canvas features of the browser running this Phaser Game instance.
These values are read-only and populated during the boot sequence of the game.
They are then referenced by internal game systems and are available for you to access
via this.sys.game.device.canvasFeatures
from within any Scene.
Source: src/device/CanvasFeatures.js#L9
Since: 3.0.0
Features
Features
Description:
Determines the features of the browser running this Phaser Game instance.
These values are read-only and populated during the boot sequence of the game.
They are then referenced by internal game systems and are available for you to access
via this.sys.game.device.features
from within any Scene.
Source: src/device/Features.js#L11
Since: 3.0.0
Fullscreen
Fullscreen
Description:
Determines the full screen support of the browser running this Phaser Game instance.
These values are read-only and populated during the boot sequence of the game.
They are then referenced by internal game systems and are available for you to access
via this.sys.game.device.fullscreen
from within any Scene.
Source: src/device/Fullscreen.js#L7
Since: 3.0.0
Input
Input
Description:
Determines the input support of the browser running this Phaser Game instance.
These values are read-only and populated during the boot sequence of the game.
They are then referenced by internal game systems and are available for you to access
via this.sys.game.device.input
from within any Scene.
Source: src/device/Input.js#L9
Since: 3.0.0
OS
OS
Description:
Determines the operating system of the device running this Phaser Game instance.
These values are read-only and populated during the boot sequence of the game.
They are then referenced by internal game systems and are available for you to access
via this.sys.game.device.os
from within any Scene.
Source: src/device/OS.js#L7
Since: 3.0.0
Video
Video
Description:
Determines the video support of the browser running this Phaser Game instance.
These values are read-only and populated during the boot sequence of the game.
They are then referenced by internal game systems and are available for you to access
via this.sys.game.device.video
from within any Scene.
In Phaser 3.20 the properties were renamed to drop the 'Video' suffix.
Source: src/device/Video.js#L9
Since: 3.0.0