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
ss.fullscreen.open();
// Exit fullscreen mode
ss.fullscreen.close();
// Toggle fullscreen mode
ss.fullscreen.toggle();
// Enter fullscreen mode
SS_Fullscreen.Open(OnOpen);
// Exit fullscreen mode
SS_Fullscreen.Close(OnClose);
// Toggle fullscreen mode
SS_Fullscreen.Toggle();
Checking for fullscreen mode FREE:
- JavaScript
- Unity
ss.fullscreen.isEnabled;
Not implemented
Events list:
- JavaScript
- Unity
ss.fullscreen.on('open', () => {});
ss.fullscreen.on('close', () => {});
ss.fullscreen.on('change', () => {});
private void OnEnable() => SS_Fullscreen.OnFullscreenChange += OnChange;
private void OnDisable() => SS_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.
SpellSync Community Telegram
: @spellsync.
For your suggestions e-mail
: [email protected]
We Wish you Success!