|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.service.wallpaper.WallpaperService.Engine
com.badlogic.gdx.backends.android.AndroidLiveWallpaperService.AndroidWallpaperEngine
public class AndroidLiveWallpaperService.AndroidWallpaperEngine
Bridge between surface on which wallpaper is rendered and the wallpaper service. The problem is that there can be a group of Engines at one time and we must share libGDX application between them.
| Constructor Summary | |
|---|---|
AndroidLiveWallpaperService.AndroidWallpaperEngine()
|
|
| Method Summary | |
|---|---|
android.os.Bundle |
onCommand(String pAction,
int pX,
int pY,
int pZ,
android.os.Bundle pExtras,
boolean pResultRequested)
|
void |
onCreate(android.view.SurfaceHolder surfaceHolder)
|
void |
onDestroy()
|
void |
onOffsetsChanged(float xOffset,
float yOffset,
float xOffsetStep,
float yOffsetStep,
int xPixelOffset,
int yPixelOffset)
|
void |
onPause()
|
void |
onResume()
|
void |
onSurfaceChanged(android.view.SurfaceHolder holder,
int format,
int width,
int height)
This is called immediately after any structural changes (format or size) have been made to the surface. |
void |
onSurfaceCreated(android.view.SurfaceHolder holder)
Called before surface holder callbacks (ex for GLSurfaceView)! This is called immediately after the surface is first created. |
void |
onSurfaceDestroyed(android.view.SurfaceHolder holder)
Called after surface holder callbacks (ex for GLSurfaceView)! This is called immediately before a surface is being destroyed. |
void |
onTouchEvent(android.view.MotionEvent event)
|
void |
onVisibilityChanged(boolean visible)
Called to inform you of the wallpaper becoming visible or hidden. |
| Methods inherited from class android.service.wallpaper.WallpaperService.Engine |
|---|
getDesiredMinimumHeight, getDesiredMinimumWidth, getSurfaceHolder, isPreview, isVisible, onDesiredSizeChanged, onSurfaceRedrawNeeded, setOffsetNotificationsEnabled, setTouchEventsEnabled |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AndroidLiveWallpaperService.AndroidWallpaperEngine()
| Method Detail |
|---|
public void onCreate(android.view.SurfaceHolder surfaceHolder)
onCreate in class android.service.wallpaper.WallpaperService.Enginepublic void onSurfaceCreated(android.view.SurfaceHolder holder)
onSurfaceCreated in class android.service.wallpaper.WallpaperService.Engine
public void onSurfaceChanged(android.view.SurfaceHolder holder,
int format,
int width,
int height)
onSurfaceChanged in class android.service.wallpaper.WallpaperService.Enginepublic void onVisibilityChanged(boolean visible)
onVisibilityChanged in class android.service.wallpaper.WallpaperService.Enginepublic void onResume()
public void onPause()
public void onSurfaceDestroyed(android.view.SurfaceHolder holder)
onSurfaceDestroyed in class android.service.wallpaper.WallpaperService.Enginepublic void onDestroy()
onDestroy in class android.service.wallpaper.WallpaperService.Engine
public android.os.Bundle onCommand(String pAction,
int pX,
int pY,
int pZ,
android.os.Bundle pExtras,
boolean pResultRequested)
onCommand in class android.service.wallpaper.WallpaperService.Enginepublic void onTouchEvent(android.view.MotionEvent event)
onTouchEvent in class android.service.wallpaper.WallpaperService.Engine
public void onOffsetsChanged(float xOffset,
float yOffset,
float xOffsetStep,
float yOffsetStep,
int xPixelOffset,
int yPixelOffset)
onOffsetsChanged in class android.service.wallpaper.WallpaperService.Engine
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||