Package com.badlogic.gdx
Interface LifecycleListener
-
public interface LifecycleListener
A LifecycleListener can be added to anApplication
viaApplication.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 theApplicationListener
interface. The methods will be invoked on the rendering thread. The methods will be executed before theApplicationListener
methods are executed.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dispose()
Called when theApplication
is about to be disposedvoid
pause()
Called when theApplication
is about to pausevoid
resume()
Called when the Application is about to be resumed
-
-
-
Method Detail
-
pause
void pause()
Called when theApplication
is about to pause
-
resume
void resume()
Called when the Application is about to be resumed
-
dispose
void dispose()
Called when theApplication
is about to be disposed
-
-