Phaser API Documentation

  Version: 
Event: ORIENTATION_CHANGE
Phaser.Scale.Events.ORIENTATION_CHANGE
ORIENTATION_CHANGE

Description:

The Scale Manager Orientation Change Event.

This event is dispatched whenever the Scale Manager detects an orientation change event from the browser.

Parameters:

name type description
orientation string

The new orientation value. Either Phaser.Scale.Orientation.LANDSCAPE or Phaser.Scale.Orientation.PORTRAIT.

Since: 3.16.1