onSuspend method

void onSuspend()

Called when the application is suspended.

This typically happens when the browser tab or window loses focus, if autoSuspend is enabled in AppConfig (which is true by default).

Override this method to save game state, pause animations, or mute audio if needed. The base App class automatically suspends audio and input systems.

Implementation

void onSuspend() {}