Interface LifecycleListener


  • public interface LifecycleListener
    A LifecycleListener can be added to an Application via Application.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 the ApplicationListener interface.

    The methods will be invoked on the rendering thread. The methods will be executed before the ApplicationListener methods are executed.
    • Method Detail

      • pause

        void pause()
        Called when the Application is about to pause
      • resume

        void resume()
        Called when the Application is about to be resumed
      • dispose

        void dispose()
        Called when the Application is about to be disposed