Package com.badlogic.gdx
Class ApplicationAdapter
- java.lang.Object
-
- com.badlogic.gdx.ApplicationAdapter
-
- All Implemented Interfaces:
ApplicationListener
public abstract class ApplicationAdapter extends java.lang.Object implements ApplicationListener
Convenience implementation ofApplicationListener. Derive from this and only override what you need.
-
-
Constructor Summary
Constructors Constructor Description ApplicationAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreate()Called when theApplicationis first created.voiddispose()Called when theApplicationis destroyed.voidpause()Called when theApplicationis paused, usually when it's not active or visible on-screen.voidrender()Called when theApplicationshould render itself.voidresize(int width, int height)Called when theApplicationis resized.voidresume()Called when theApplicationis resumed from a paused state, usually when it regains focus.
-
-
-
Method Detail
-
create
public void create()
Description copied from interface:ApplicationListenerCalled when theApplicationis first created.- Specified by:
createin interfaceApplicationListener
-
resize
public void resize(int width, int height)Description copied from interface:ApplicationListenerCalled when theApplicationis resized. This can happen at any point during a non-paused state but will never happen before a call toApplicationListener.create().- Specified by:
resizein interfaceApplicationListener- Parameters:
width- the new width in pixelsheight- the new height in pixels
-
render
public void render()
Description copied from interface:ApplicationListenerCalled when theApplicationshould render itself.- Specified by:
renderin interfaceApplicationListener
-
pause
public void pause()
Description copied from interface:ApplicationListenerCalled when theApplicationis paused, usually when it's not active or visible on-screen. An Application is also paused before it is destroyed.- Specified by:
pausein interfaceApplicationListener
-
resume
public void resume()
Description copied from interface:ApplicationListenerCalled when theApplicationis resumed from a paused state, usually when it regains focus.- Specified by:
resumein interfaceApplicationListener
-
dispose
public void dispose()
Description copied from interface:ApplicationListenerCalled when theApplicationis destroyed. Preceded by a call toApplicationListener.pause().- Specified by:
disposein interfaceApplicationListener
-
-