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:
- JavaScript
- Unity
// Enter fullscreen mode
gp.fullscreen.open();
// Exit fullscreen mode
gp.fullscreen.close();
// Toggle fullscreen mode
gp.fullscreen.toggle();
// Enter fullscreen mode
GP_Fullscreen.Open(OnOpen);
// Exit fullscreen mode
GP_Fullscreen.Close(OnClose);
// Toggle fullscreen mode
GP_Fullscreen.Toggle();
Checking for fullscreen mode FREE:
- JavaScript
- Unity
gp.fullscreen.isEnabled;
Not implemented
Events list:
- JavaScript
- Unity
gp.fullscreen.on('open', () => {});
gp.fullscreen.on('close', () => {});
gp.fullscreen.on('change', () => {});
private void OnEnable() => GP_Fullscreen.OnFullscreenChange += OnChange;
private void OnDisable() => GP_Fullscreen.OnFullscreenChange += OnChange;
private void OnOpen() => Debug.Log("FULLSCREEN: ON OPEN");
private void OnClose() => Debug.Log("FULLSCREEN: ON CLOSE");
private void OnChange() => Debug.Log("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!