public class AndroidLiveWallpaper extends java.lang.Object implements AndroidApplicationBase
Application interface to be used with an AndroidLiveWallpaperService. Not directly
constructable, instead the AndroidLiveWallpaperService will create this class internally.| Modifier and Type | Field and Description |
|---|---|
protected com.badlogic.gdx.ApplicationLogger |
applicationLogger |
protected AndroidAudio |
audio |
protected AndroidClipboard |
clipboard |
protected com.badlogic.gdx.utils.Array<java.lang.Runnable> |
executedRunnables |
protected AndroidFiles |
files |
protected boolean |
firstResume |
protected AndroidGraphicsLiveWallpaper |
graphics |
protected AndroidInput |
input |
protected com.badlogic.gdx.utils.SnapshotArray<com.badlogic.gdx.LifecycleListener> |
lifecycleListeners |
protected com.badlogic.gdx.ApplicationListener |
listener |
protected int |
logLevel |
protected AndroidNet |
net |
protected com.badlogic.gdx.utils.Array<java.lang.Runnable> |
runnables |
protected AndroidLiveWallpaperService |
service |
protected com.badlogic.gdx.graphics.Color[] |
wallpaperColors |
MINIMUM_SDK| Constructor and Description |
|---|
AndroidLiveWallpaper(AndroidLiveWallpaperService service) |
| Modifier and Type | Method and Description |
|---|---|
void |
addLifecycleListener(com.badlogic.gdx.LifecycleListener listener) |
AndroidAudio |
createAudio(android.content.Context context,
AndroidApplicationConfiguration config)
Returns the AndroidAudio to be used by the application
|
AndroidInput |
createInput(com.badlogic.gdx.Application activity,
android.content.Context context,
java.lang.Object view,
AndroidApplicationConfiguration config)
Returns the AndroidInput to be used by the application
|
void |
debug(java.lang.String tag,
java.lang.String message) |
void |
debug(java.lang.String tag,
java.lang.String message,
java.lang.Throwable exception) |
void |
error(java.lang.String tag,
java.lang.String message) |
void |
error(java.lang.String tag,
java.lang.String message,
java.lang.Throwable exception) |
void |
exit() |
com.badlogic.gdx.ApplicationListener |
getApplicationListener() |
com.badlogic.gdx.ApplicationLogger |
getApplicationLogger() |
android.view.Window |
getApplicationWindow()
Returns the Window associated with the application
|
com.badlogic.gdx.Audio |
getAudio() |
com.badlogic.gdx.utils.Clipboard |
getClipboard() |
android.content.Context |
getContext()
The application or activity context
|
com.badlogic.gdx.utils.Array<java.lang.Runnable> |
getExecutedRunnables()
The currently executed runnables
|
com.badlogic.gdx.Files |
getFiles() |
com.badlogic.gdx.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() |
com.badlogic.gdx.utils.SnapshotArray<com.badlogic.gdx.LifecycleListener> |
getLifecycleListeners()
Returns the
LifecycleListener array associated with this AndroidApplicationBase |
int |
getLogLevel() |
long |
getNativeHeap() |
com.badlogic.gdx.Net |
getNet() |
com.badlogic.gdx.Preferences |
getPreferences(java.lang.String name) |
com.badlogic.gdx.utils.Array<java.lang.Runnable> |
getRunnables()
A set of usable runnables
|
AndroidLiveWallpaperService |
getService() |
com.badlogic.gdx.Application.ApplicationType |
getType() |
int |
getVersion() |
android.view.WindowManager |
getWindowManager()
Returns the WindowManager associated with the application
|
void |
initialize(com.badlogic.gdx.ApplicationListener listener,
AndroidApplicationConfiguration config) |
void |
log(java.lang.String tag,
java.lang.String message) |
void |
log(java.lang.String tag,
java.lang.String message,
java.lang.Throwable exception) |
void |
notifyColorsChanged(com.badlogic.gdx.graphics.Color primaryColor,
com.badlogic.gdx.graphics.Color secondaryColor,
com.badlogic.gdx.graphics.Color tertiaryColor)
Notify the wallpaper engine that the significant colors of the wallpaper have changed.
|
void |
onDestroy() |
void |
onPause() |
void |
onResume() |
void |
postRunnable(java.lang.Runnable runnable) |
void |
removeLifecycleListener(com.badlogic.gdx.LifecycleListener listener) |
void |
runOnUiThread(java.lang.Runnable runnable)
Method signifies an intent of the caller to execute some action on the UI Thread.
|
void |
setApplicationLogger(com.badlogic.gdx.ApplicationLogger applicationLogger) |
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.
|
protected AndroidLiveWallpaperService service
protected AndroidGraphicsLiveWallpaper graphics
protected AndroidInput input
protected AndroidAudio audio
protected AndroidFiles files
protected AndroidNet net
protected AndroidClipboard clipboard
protected com.badlogic.gdx.ApplicationListener listener
protected boolean firstResume
protected final com.badlogic.gdx.utils.Array<java.lang.Runnable> runnables
protected final com.badlogic.gdx.utils.Array<java.lang.Runnable> executedRunnables
protected final com.badlogic.gdx.utils.SnapshotArray<com.badlogic.gdx.LifecycleListener> lifecycleListeners
protected int logLevel
protected com.badlogic.gdx.ApplicationLogger applicationLogger
protected volatile com.badlogic.gdx.graphics.Color[] wallpaperColors
public AndroidLiveWallpaper(AndroidLiveWallpaperService service)
public void initialize(com.badlogic.gdx.ApplicationListener listener,
AndroidApplicationConfiguration config)
public void onPause()
public void onResume()
public void onDestroy()
public android.view.WindowManager getWindowManager()
AndroidApplicationBasegetWindowManager in interface AndroidApplicationBaseWindowManager associated with the applicationpublic AndroidLiveWallpaperService getService()
public com.badlogic.gdx.ApplicationListener getApplicationListener()
getApplicationListener in interface com.badlogic.gdx.Applicationpublic void postRunnable(java.lang.Runnable runnable)
postRunnable in interface com.badlogic.gdx.Applicationpublic com.badlogic.gdx.Audio getAudio()
getAudio in interface com.badlogic.gdx.Applicationpublic com.badlogic.gdx.Files getFiles()
getFiles in interface com.badlogic.gdx.Applicationpublic com.badlogic.gdx.Graphics getGraphics()
getGraphics in interface com.badlogic.gdx.Applicationpublic AndroidInput getInput()
AndroidApplicationBaseAndroidInput object associated with this AndroidApplicationBasegetInput in interface com.badlogic.gdx.ApplicationgetInput in interface AndroidApplicationBaseAndroidInput objectpublic com.badlogic.gdx.Net getNet()
getNet in interface com.badlogic.gdx.Applicationpublic com.badlogic.gdx.Application.ApplicationType getType()
getType in interface com.badlogic.gdx.Applicationpublic int getVersion()
getVersion in interface com.badlogic.gdx.Applicationpublic long getJavaHeap()
getJavaHeap in interface com.badlogic.gdx.Applicationpublic long getNativeHeap()
getNativeHeap in interface com.badlogic.gdx.Applicationpublic com.badlogic.gdx.Preferences getPreferences(java.lang.String name)
getPreferences in interface com.badlogic.gdx.Applicationpublic com.badlogic.gdx.utils.Clipboard getClipboard()
getClipboard in interface com.badlogic.gdx.Applicationpublic void debug(java.lang.String tag,
java.lang.String message)
debug in interface com.badlogic.gdx.Applicationpublic void debug(java.lang.String tag,
java.lang.String message,
java.lang.Throwable exception)
debug in interface com.badlogic.gdx.Applicationpublic void log(java.lang.String tag,
java.lang.String message)
log in interface com.badlogic.gdx.Applicationpublic void log(java.lang.String tag,
java.lang.String message,
java.lang.Throwable exception)
log in interface com.badlogic.gdx.Applicationpublic void error(java.lang.String tag,
java.lang.String message)
error in interface com.badlogic.gdx.Applicationpublic void error(java.lang.String tag,
java.lang.String message,
java.lang.Throwable exception)
error in interface com.badlogic.gdx.Applicationpublic void setLogLevel(int logLevel)
setLogLevel in interface com.badlogic.gdx.Applicationpublic int getLogLevel()
getLogLevel in interface com.badlogic.gdx.Applicationpublic void setApplicationLogger(com.badlogic.gdx.ApplicationLogger applicationLogger)
setApplicationLogger in interface com.badlogic.gdx.Applicationpublic com.badlogic.gdx.ApplicationLogger getApplicationLogger()
getApplicationLogger in interface com.badlogic.gdx.Applicationpublic void exit()
exit in interface com.badlogic.gdx.Applicationpublic void addLifecycleListener(com.badlogic.gdx.LifecycleListener listener)
addLifecycleListener in interface com.badlogic.gdx.Applicationpublic void removeLifecycleListener(com.badlogic.gdx.LifecycleListener listener)
removeLifecycleListener in interface com.badlogic.gdx.Applicationpublic android.content.Context getContext()
AndroidApplicationBasegetContext in interface AndroidApplicationBaseContextpublic com.badlogic.gdx.utils.Array<java.lang.Runnable> getRunnables()
AndroidApplicationBasegetRunnables in interface AndroidApplicationBaseRunnable arraypublic com.badlogic.gdx.utils.Array<java.lang.Runnable> getExecutedRunnables()
AndroidApplicationBasegetExecutedRunnables in interface AndroidApplicationBaseRunnable arraypublic com.badlogic.gdx.utils.SnapshotArray<com.badlogic.gdx.LifecycleListener> getLifecycleListeners()
AndroidApplicationBaseLifecycleListener array associated with this AndroidApplicationBasegetLifecycleListeners in interface AndroidApplicationBaseLifecycleListener'spublic void startActivity(android.content.Intent intent)
AndroidApplicationBaseActivity classstartActivity in interface AndroidApplicationBaseintent - The Intent for starting an activitypublic android.view.Window getApplicationWindow()
AndroidApplicationBasegetApplicationWindow in interface AndroidApplicationBaseWindow associated with the applicationpublic android.os.Handler getHandler()
AndroidApplicationBasegetHandler in interface AndroidApplicationBaseHandler object created by the applicationpublic AndroidAudio createAudio(android.content.Context context, AndroidApplicationConfiguration config)
AndroidApplicationBasecreateAudio in interface AndroidApplicationBaseAndroidAudiopublic AndroidInput createInput(com.badlogic.gdx.Application activity, android.content.Context context, java.lang.Object view, AndroidApplicationConfiguration config)
AndroidApplicationBasecreateInput in interface AndroidApplicationBaseAndroidInputpublic void runOnUiThread(java.lang.Runnable runnable)
AndroidApplicationBaserunOnUiThread in interface AndroidApplicationBaserunnable - The runnable to be executedpublic void useImmersiveMode(boolean b)
AndroidApplicationBaseuseImmersiveMode in interface AndroidApplicationBaseb - Whether or not to use immersive modepublic void notifyColorsChanged(com.badlogic.gdx.graphics.Color primaryColor,
com.badlogic.gdx.graphics.Color secondaryColor,
com.badlogic.gdx.graphics.Color tertiaryColor)
primaryColor - The most visually significant color.secondaryColor - The second most visually significant color.tertiaryColor - The third most visually significant color.