com.badlogic.gdx.backends.android
Class AndroidLiveWallpaper

java.lang.Object
  extended by com.badlogic.gdx.backends.android.AndroidLiveWallpaper
All Implemented Interfaces:
Application, AndroidApplicationBase

public class AndroidLiveWallpaper
extends Object
implements AndroidApplicationBase

An implementation of the Application interface to be used with an AndroidLiveWallpaperService. Not directly constructable, instead the AndroidLiveWallpaperService will create this class internally.

Author:
mzechner

Nested Class Summary
 
Nested classes/interfaces inherited from interface com.badlogic.gdx.Application
Application.ApplicationType
 
Field Summary
 
Fields inherited from interface com.badlogic.gdx.backends.android.AndroidApplicationBase
MINIMUM_SDK
 
Fields inherited from interface com.badlogic.gdx.Application
LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_NONE
 
Constructor Summary
AndroidLiveWallpaper(AndroidLiveWallpaperService service)
           
 
Method Summary
 void addLifecycleListener(LifecycleListener listener)
           
 void debug(String tag, String message)
           
 void debug(String tag, String message, Throwable exception)
           
 void error(String tag, String message)
           
 void error(String tag, String message, Throwable exception)
           
 void exit()
           
 ApplicationListener getApplicationListener()
           
 android.view.Window getApplicationWindow()
          Returns the Window associated with the application
 Audio getAudio()
           
 Clipboard getClipboard()
           
 android.content.Context getContext()
          The application or activity context
 Array<Runnable> getExecutedRunnables()
          The currently executed runnables
 Files getFiles()
           
 Graphics getGraphics()
           
 android.os.Handler getHandler()
          Returns the Handler object created by the application
 AndroidInput getInput()
          Returns the AndroidInput object associated with this AndroidApplicationBase
 long getJavaHeap()
           
 Array<LifecycleListener> getLifecycleListeners()
          Returns the LifecycleListener array associated with this AndroidApplicationBase
 ApplicationListener getListener()
          Deprecated. 
 int getLogLevel()
           
 long getNativeHeap()
           
 Net getNet()
           
 Preferences getPreferences(String name)
           
 Array<Runnable> getRunnables()
          A set of usable runnables
 AndroidLiveWallpaperService getService()
           
 Application.ApplicationType getType()
           
 int getVersion()
           
 android.view.WindowManager getWindowManager()
          Returns the WindowManager associated with the application
 void initialize(ApplicationListener listener, AndroidApplicationConfiguration config)
           
 void log(String tag, String message)
           
 void log(String tag, String message, Throwable exception)
           
 void onDestroy()
           
 void onPause()
           
 void onResume()
           
 void postRunnable(Runnable runnable)
           
 void removeLifecycleListener(LifecycleListener listener)
           
 void runOnUiThread(Runnable runnable)
          Method signifies an intent of the caller to execute some action on the UI Thread.
 void setLogLevel(int logLevel)
           
 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 class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AndroidLiveWallpaper

public AndroidLiveWallpaper(AndroidLiveWallpaperService service)
Method Detail

initialize

public void initialize(ApplicationListener listener,
                       AndroidApplicationConfiguration config)

onPause

public void onPause()

onResume

public void onResume()

onDestroy

public void onDestroy()

getWindowManager

public android.view.WindowManager getWindowManager()
Description copied from interface: AndroidApplicationBase
Returns the WindowManager associated with the application

Specified by:
getWindowManager in interface AndroidApplicationBase
Returns:
The WindowManager associated with the application

getService

public AndroidLiveWallpaperService getService()

getListener

@Deprecated
public ApplicationListener getListener()
Deprecated. 


getApplicationListener

public ApplicationListener getApplicationListener()
Specified by:
getApplicationListener in interface Application

postRunnable

public void postRunnable(Runnable runnable)
Specified by:
postRunnable in interface Application

getAudio

public Audio getAudio()
Specified by:
getAudio in interface Application

getFiles

public Files getFiles()
Specified by:
getFiles in interface Application

getGraphics

public Graphics getGraphics()
Specified by:
getGraphics in interface Application

getInput

public AndroidInput getInput()
Description copied from interface: AndroidApplicationBase
Returns the AndroidInput object associated with this AndroidApplicationBase

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

getNet

public Net getNet()
Specified by:
getNet in interface Application

getType

public Application.ApplicationType getType()
Specified by:
getType in interface Application

getVersion

public int getVersion()
Specified by:
getVersion in interface Application

getJavaHeap

public long getJavaHeap()
Specified by:
getJavaHeap in interface Application

getNativeHeap

public long getNativeHeap()
Specified by:
getNativeHeap in interface Application

getPreferences

public Preferences getPreferences(String name)
Specified by:
getPreferences in interface Application

getClipboard

public Clipboard getClipboard()
Specified by:
getClipboard in interface Application

debug

public void debug(String tag,
                  String message)
Specified by:
debug in interface Application

debug

public void debug(String tag,
                  String message,
                  Throwable exception)
Specified by:
debug in interface Application

log

public void log(String tag,
                String message)
Specified by:
log in interface Application

log

public void log(String tag,
                String message,
                Throwable exception)
Specified by:
log in interface Application

error

public void error(String tag,
                  String message)
Specified by:
error in interface Application

error

public void error(String tag,
                  String message,
                  Throwable exception)
Specified by:
error in interface Application

setLogLevel

public void setLogLevel(int logLevel)
Specified by:
setLogLevel in interface Application

getLogLevel

public int getLogLevel()
Specified by:
getLogLevel in interface Application

exit

public void exit()
Specified by:
exit in interface Application

addLifecycleListener

public void addLifecycleListener(LifecycleListener listener)
Specified by:
addLifecycleListener in interface Application

removeLifecycleListener

public void removeLifecycleListener(LifecycleListener listener)
Specified by:
removeLifecycleListener in interface Application

getContext

public android.content.Context getContext()
Description copied from interface: AndroidApplicationBase
The application or activity context

Specified by:
getContext in interface AndroidApplicationBase
Returns:
the Context

getRunnables

public Array<Runnable> getRunnables()
Description copied from interface: AndroidApplicationBase
A set of usable runnables

Specified by:
getRunnables in interface AndroidApplicationBase
Returns:
the Runnable array

getExecutedRunnables

public Array<Runnable> getExecutedRunnables()
Description copied from interface: AndroidApplicationBase
The currently executed runnables

Specified by:
getExecutedRunnables in interface AndroidApplicationBase
Returns:
the Runnable array

getLifecycleListeners

public Array<LifecycleListener> getLifecycleListeners()
Description copied from interface: AndroidApplicationBase
Returns the LifecycleListener array associated with this AndroidApplicationBase

Specified by:
getLifecycleListeners in interface AndroidApplicationBase
Returns:
the array of LifecycleListener's

startActivity

public void startActivity(android.content.Intent intent)
Description copied from interface: AndroidApplicationBase
Method signifies an intent to start an activity, may be the default method of the Activity class

Specified by:
startActivity in interface AndroidApplicationBase
Parameters:
intent - The Intent for starting an activity

getApplicationWindow

public android.view.Window getApplicationWindow()
Description copied from interface: AndroidApplicationBase
Returns the Window associated with the application

Specified by:
getApplicationWindow in interface AndroidApplicationBase
Returns:
The Window associated with the application

getHandler

public android.os.Handler getHandler()
Description copied from interface: AndroidApplicationBase
Returns the Handler object created by the application

Specified by:
getHandler in interface AndroidApplicationBase
Returns:
The Handler object created by the application

runOnUiThread

public void runOnUiThread(Runnable runnable)
Description copied from interface: AndroidApplicationBase
Method signifies an intent of the caller to execute some action on the UI Thread.

Specified by:
runOnUiThread in interface AndroidApplicationBase
Parameters:
runnable - The runnable to be executed

useImmersiveMode

public void useImmersiveMode(boolean b)
Description copied from interface: AndroidApplicationBase
Activates Android 4.4 KitKat's 'Immersive Mode' feature.

Specified by:
useImmersiveMode in interface AndroidApplicationBase
Parameters:
b - Whether or not to use immersive mode


Copyright © 2014. All Rights Reserved.