|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AndroidApplicationBase
Interface that abstracts the Android application class usages, so that libGDX can be used with a fragment (or with any other client code)
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.badlogic.gdx.Application |
|---|
Application.ApplicationType |
| Field Summary | |
|---|---|
static int |
MINIMUM_SDK
|
| Fields inherited from interface com.badlogic.gdx.Application |
|---|
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_NONE |
| Method Summary | |
|---|---|
android.view.Window |
getApplicationWindow()
Returns the Window associated with the application |
android.content.Context |
getContext()
The application or activity context |
Array<Runnable> |
getExecutedRunnables()
The currently executed runnables |
android.os.Handler |
getHandler()
Returns the Handler object created by the application |
AndroidInput |
getInput()
Returns the AndroidInput object associated with this AndroidApplicationBase |
Array<LifecycleListener> |
getLifecycleListeners()
Returns the LifecycleListener array associated with this AndroidApplicationBase |
Array<Runnable> |
getRunnables()
A set of usable runnables |
android.view.WindowManager |
getWindowManager()
Returns the WindowManager associated with the application |
void |
runOnUiThread(Runnable runnable)
Method signifies an intent of the caller to execute some action on the UI Thread. |
void |
startActivity(android.content.Intent intent)
Method signifies an intent to start an activity, may be the default method of the Activity class |
void |
useImmersiveMode(boolean b)
Activates Android 4.4 KitKat's 'Immersive Mode' feature. |
| Methods inherited from interface com.badlogic.gdx.Application |
|---|
addLifecycleListener, debug, debug, error, error, exit, getApplicationListener, getAudio, getClipboard, getFiles, getGraphics, getJavaHeap, getLogLevel, getNativeHeap, getNet, getPreferences, getType, getVersion, log, log, postRunnable, removeLifecycleListener, setLogLevel |
| Field Detail |
|---|
static final int MINIMUM_SDK
| Method Detail |
|---|
android.content.Context getContext()
ContextArray<Runnable> getRunnables()
Runnable arrayArray<Runnable> getExecutedRunnables()
Runnable arrayvoid runOnUiThread(Runnable runnable)
runnable - The runnable to be executedvoid startActivity(android.content.Intent intent)
Activity class
intent - The Intent for starting an activityAndroidInput getInput()
AndroidInput object associated with this AndroidApplicationBase
getInput in interface ApplicationAndroidInput objectArray<LifecycleListener> getLifecycleListeners()
LifecycleListener array associated with this AndroidApplicationBase
LifecycleListener'sandroid.view.Window getApplicationWindow()
Window associated with the applicationandroid.view.WindowManager getWindowManager()
WindowManager associated with the applicationvoid useImmersiveMode(boolean b)
b - Whether or not to use immersive modeandroid.os.Handler getHandler()
Handler object created by the application
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||