Phaser API Documentation

  Version: 

Member of: Phaser.DOM

<static> GetScreenOrientation(width, height)

Description:

Attempts to determine the screen orientation using the Orientation API.

Parameters:

name type description
width number

The width of the viewport.

height number

The height of the viewport.

Returns:
Description:

The orientation.

Type:
  • string
Since: 3.16.0