public class AndroidLiveWallpaper extends Object implements AndroidApplicationBase
Application interface to be used with an AndroidLiveWallpaperService. Not directly
constructable, instead the AndroidLiveWallpaperService will create this class internally.Application.ApplicationTypeMINIMUM_SDKLOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_NONE| Constructor and Description |
|---|
AndroidLiveWallpaper(AndroidLiveWallpaperService service) |
| Modifier and Type | Method and Description |
|---|---|
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() |
SnapshotArray<LifecycleListener> |
getLifecycleListeners()
Returns the
LifecycleListener array associated with this AndroidApplicationBase |
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.
|
public AndroidLiveWallpaper(AndroidLiveWallpaperService service)
public void initialize(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 ApplicationListener getApplicationListener()
getApplicationListener in interface Applicationpublic void postRunnable(Runnable runnable)
postRunnable in interface Applicationpublic Audio getAudio()
getAudio in interface Applicationpublic Files getFiles()
getFiles in interface Applicationpublic Graphics getGraphics()
getGraphics in interface Applicationpublic AndroidInput getInput()
AndroidApplicationBaseAndroidInput object associated with this AndroidApplicationBasegetInput in interface ApplicationgetInput in interface AndroidApplicationBaseAndroidInput objectpublic Net getNet()
getNet in interface Applicationpublic Application.ApplicationType getType()
getType in interface Applicationpublic int getVersion()
getVersion in interface Applicationpublic long getJavaHeap()
getJavaHeap in interface Applicationpublic long getNativeHeap()
getNativeHeap in interface Applicationpublic Preferences getPreferences(String name)
getPreferences in interface Applicationpublic Clipboard getClipboard()
getClipboard in interface Applicationpublic void debug(String tag, String message)
debug in interface Applicationpublic void debug(String tag, String message, Throwable exception)
debug in interface Applicationpublic void log(String tag, String message)
log in interface Applicationpublic void log(String tag, String message, Throwable exception)
log in interface Applicationpublic void error(String tag, String message)
error in interface Applicationpublic void error(String tag, String message, Throwable exception)
error in interface Applicationpublic void setLogLevel(int logLevel)
setLogLevel in interface Applicationpublic int getLogLevel()
getLogLevel in interface Applicationpublic void exit()
exit in interface Applicationpublic void addLifecycleListener(LifecycleListener listener)
addLifecycleListener in interface Applicationpublic void removeLifecycleListener(LifecycleListener listener)
removeLifecycleListener in interface Applicationpublic android.content.Context getContext()
AndroidApplicationBasegetContext in interface AndroidApplicationBaseContextpublic Array<Runnable> getRunnables()
AndroidApplicationBasegetRunnables in interface AndroidApplicationBaseRunnable arraypublic Array<Runnable> getExecutedRunnables()
AndroidApplicationBasegetExecutedRunnables in interface AndroidApplicationBaseRunnable arraypublic SnapshotArray<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 void runOnUiThread(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 modeCopyright © 2016. All rights reserved.