lifecycleStateChange method
This is the lifecycle state change hook; every time the game is resumed, paused or suspended, this is called.
The default implementation does nothing; override to use the hook. Check AppLifecycleState for details about the events received.
Implementation
void lifecycleStateChange(AppLifecycleState state) {}