|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.badlogic.gdx.ApplicationAdapter
public abstract class ApplicationAdapter
Convenience implementation of ApplicationListener
. Derive from this and only override what you need.
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 |
---|
public ApplicationAdapter()
Method Detail |
---|
public void create()
ApplicationListener
Application
is first created.
create
in interface ApplicationListener
public void resize(int width, int height)
ApplicationListener
Application
is resized. This can happen at any point during a non-paused state but will never happen
before a call to ApplicationListener.create()
.
resize
in interface ApplicationListener
width
- the new width in pixelsheight
- the new height in pixelspublic void render()
ApplicationListener
Application
should render itself.
render
in interface ApplicationListener
public void pause()
ApplicationListener
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.
pause
in interface ApplicationListener
public void resume()
ApplicationListener
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.
resume
in interface ApplicationListener
public void dispose()
ApplicationListener
Application
is destroyed. Preceded by a call to ApplicationListener.pause()
.
dispose
in interface ApplicationListener
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |