Package com.badlogic.gdx
Interface LifecycleListener
-
public interface LifecycleListenerA LifecycleListener can be added to anApplicationviaApplication.addLifecycleListener(LifecycleListener). It will receive notification of pause, resume and dispose events. This is mainly meant to be used by extensions that need to manage resources based on the life-cycle. Normal, application level development should rely on theApplicationListenerinterface. The methods will be invoked on the rendering thread. The methods will be executed before theApplicationListenermethods are executed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddispose()Called when theApplicationis about to be disposedvoidpause()Called when theApplicationis about to pausevoidresume()Called when the Application is about to be resumed
-
-
-
Method Detail
-
pause
void pause()
Called when theApplicationis about to pause
-
resume
void resume()
Called when the Application is about to be resumed
-
dispose
void dispose()
Called when theApplicationis about to be disposed
-
-