APIdia Launch Partner
Top Description Methods
com.badlogic.gdx

public Interface Screen

extends Disposable
Known Direct Implementers
com.badlogic.gdx.ScreenAdapter
Imports
com.badlogic.gdx.utils.Disposable

Represents one of many application screens, such as a main menu, a settings menu, the game screen and so on.

Note that dispose() is not called automatically.

See Also
Game

Method Summary

Modifier and TypeMethod and Description
public void
dispose()

Redeclares com.badlogic.gdx.utils.Disposable.dispose.

Called when this screen should release all resources.

public void
hide()

Called when this screen is no longer the current screen for a Game.

public void
public void
render(float
The time in seconds since the last render.
delta
)

Called when the screen should render itself.

public void
resize(int width, int height)

public void
public void
show()

Called when this screen becomes the current screen for a Game.

Method Detail

disposeback to summary
public void dispose()

Redeclares com.badlogic.gdx.utils.Disposable.dispose.

Called when this screen should release all resources.

hideback to summary
public void hide()

Called when this screen is no longer the current screen for a Game.

pauseback to summary
public void pause()
See Also
ApplicationListener#pause()
renderback to summary
public void render(float delta)

Called when the screen should render itself.

Parameters
delta:float

The time in seconds since the last render.

resizeback to summary
public void resize(int width, int height)
See Also
ApplicationListener#resize(int, int)
resumeback to summary
public void resume()
See Also
ApplicationListener#resume()
showback to summary
public void show()

Called when this screen becomes the current screen for a Game.