com.badlogic.gdx.backends.android
Interface AndroidApplicationBase

All Superinterfaces:
Application
All Known Implementing Classes:
AndroidApplication, AndroidDaydream, AndroidFragmentApplication, AndroidLiveWallpaper

public interface AndroidApplicationBase
extends Application

Interface that abstracts the Android application class usages, so that libGDX can be used with a fragment (or with any other client code)

Author:
Bartol Karuza (me@bartolkaruza.com), davebaol

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

MINIMUM_SDK

static final int MINIMUM_SDK
See Also:
Constant Field Values
Method Detail

getContext

android.content.Context getContext()
The application or activity context

Returns:
the Context

getRunnables

Array<Runnable> getRunnables()
A set of usable runnables

Returns:
the Runnable array

getExecutedRunnables

Array<Runnable> getExecutedRunnables()
The currently executed runnables

Returns:
the Runnable array

runOnUiThread

void runOnUiThread(Runnable runnable)
Method signifies an intent of the caller to execute some action on the UI Thread.

Parameters:
runnable - The runnable to be executed

startActivity

void startActivity(android.content.Intent intent)
Method signifies an intent to start an activity, may be the default method of the Activity class

Parameters:
intent - The Intent for starting an activity

getInput

AndroidInput getInput()
Returns the AndroidInput object associated with this AndroidApplicationBase

Specified by:
getInput in interface Application
Returns:
the AndroidInput object

getLifecycleListeners

Array<LifecycleListener> getLifecycleListeners()
Returns the LifecycleListener array associated with this AndroidApplicationBase

Returns:
the array of LifecycleListener's

getApplicationWindow

android.view.Window getApplicationWindow()
Returns the Window associated with the application

Returns:
The Window associated with the application

getWindowManager

android.view.WindowManager getWindowManager()
Returns the WindowManager associated with the application

Returns:
The WindowManager associated with the application

useImmersiveMode

void useImmersiveMode(boolean b)
Activates Android 4.4 KitKat's 'Immersive Mode' feature.

Parameters:
b - Whether or not to use immersive mode

getHandler

android.os.Handler getHandler()
Returns the Handler object created by the application

Returns:
The Handler object created by the application


Copyright © 2014. All Rights Reserved.