Skip to main content

Fullscreen

Overview

The SDK allows to control fullscreen mode. SDK methods allow you to expand the game to full screen, exit full screen mode. You can also switch the operating mode to the opposite with one command.

List of methods FREE:

// Enter fullscreen mode
gp.fullscreen.open();
// Exit fullscreen mode
gp.fullscreen.close();
// Toggle fullscreen mode
gp.fullscreen.toggle();

Checking for fullscreen mode FREE:

gp.fullscreen.isEnabled;

Events list:

gp.fullscreen.on('open', () => {});
gp.fullscreen.on('close', () => {});
gp.fullscreen.on('change', () => {});

Stay in Touch

Other documents of this chapter available Here. To get started, welcome to the Tutorials chapter.

GamePush Community Telegram: @gs_community.

For your suggestions e-mail: [email protected]

We Wish you Success!