public interface Content
extends com.badlogic.gdx.utils.Disposable
| Modifier and Type | Method and Description |
|---|---|
void |
onActivate(ScreenId predecessor,
com.badlogic.gdx.InputMultiplexer inputHandler)
Will be called when the underlying screen gets activated.
|
void |
onBind(ScreenContext screenContext)
Will be called after the screen, which holds a reference to this object, gets added to a screen switch.
|
float |
onDeactivate(ScreenId successor,
com.badlogic.gdx.InputMultiplexer inputHandler)
Will be called when underlying screen gets deactivated.
|
void |
onPause()
Will always be called on pause.
|
void |
onRender()
Will be called on render.
|
void |
onResize(int width,
int height)
Will be called on resize.
|
void |
onResume()
Will always be called on resume.
|
void |
onUpdate()
Will be called on update.
|
void onBind(ScreenContext screenContext)
screenContext - context of the screen. Hold information about the screen switch and the screen itself.void onActivate(ScreenId predecessor, com.badlogic.gdx.InputMultiplexer inputHandler)
predecessor - predecessor of the screeninputHandler - Will chain input processorsfloat onDeactivate(ScreenId successor, com.badlogic.gdx.InputMultiplexer inputHandler)
successor - successor of the screeninputHandler - Will chain input processorsvoid onUpdate()
void onRender()
void onPause()
void onResume()
void onResize(int width,
int height)