com.badlogic.gdx
Class ApplicationAdapter

java.lang.Object
  extended by com.badlogic.gdx.ApplicationAdapter
All Implemented Interfaces:
ApplicationListener

public abstract class ApplicationAdapter
extends Object
implements ApplicationListener

Convenience implementation of ApplicationListener. Derive from this and only override what you need.

Author:
mzechner

Constructor Summary
ApplicationAdapter()
           
 
Method Summary
 void create()
          Called when the Application is first created.
 void dispose()
          Called when the Application is destroyed.
 void pause()
          Called when the Application is paused.
 void render()
          Called when the Application should render itself.
 void resize(int width, int height)
          Called when the Application is resized.
 void resume()
          Called when the Application is resumed from a paused state.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ApplicationAdapter

public ApplicationAdapter()
Method Detail

create

public void create()
Description copied from interface: ApplicationListener
Called when the Application is first created.

Specified by:
create in interface ApplicationListener

resize

public void resize(int width,
                   int height)
Description copied from interface: ApplicationListener
Called when the Application is resized. This can happen at any point during a non-paused state but will never happen before a call to ApplicationListener.create().

Specified by:
resize in interface ApplicationListener
Parameters:
width - the new width in pixels
height - the new height in pixels

render

public void render()
Description copied from interface: ApplicationListener
Called when the Application should render itself.

Specified by:
render in interface ApplicationListener

pause

public void pause()
Description copied from interface: ApplicationListener
Called when the Application is paused. An Application is paused before it is destroyed, when a user pressed the Home button on Android or an incoming call happend. On the desktop this will only be called immediately before ApplicationListener.dispose() is called.

Specified by:
pause in interface ApplicationListener

resume

public void resume()
Description copied from interface: ApplicationListener
Called when the Application is resumed from a paused state. On Android this happens when the activity gets focus again. On the desktop this method will never be called.

Specified by:
resume in interface ApplicationListener

dispose

public void dispose()
Description copied from interface: ApplicationListener
Called when the Application is destroyed. Preceded by a call to ApplicationListener.pause().

Specified by:
dispose in interface ApplicationListener


Copyright © 2013. All Rights Reserved.