public class AndroidLiveWallpaperService.AndroidWallpaperEngine
extends android.service.wallpaper.WallpaperService.Engine
| Modifier and Type | Field and Description |
|---|---|
protected int |
engineFormat |
protected int |
engineHeight |
protected boolean |
engineIsVisible |
protected int |
engineWidth |
| Constructor and Description |
|---|
AndroidWallpaperEngine() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
notifyIconDropped() |
protected void |
notifyOffsetsChanged() |
protected void |
notifyPreviewState() |
android.os.Bundle |
onCommand(java.lang.String pAction,
int pX,
int pY,
int pZ,
android.os.Bundle pExtras,
boolean pResultRequested) |
android.app.WallpaperColors |
onComputeColors() |
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.
|
dump, getDesiredMinimumHeight, getDesiredMinimumWidth, getSurfaceHolder, isPreview, isVisible, notifyColorsChanged, onApplyWindowInsets, onDesiredSizeChanged, onSurfaceRedrawNeeded, setOffsetNotificationsEnabled, setTouchEventsEnabledprotected boolean engineIsVisible
protected int engineFormat
protected int engineWidth
protected int engineHeight
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.Enginepublic 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.Enginepublic android.os.Bundle onCommand(java.lang.String pAction,
int pX,
int pY,
int pZ,
android.os.Bundle pExtras,
boolean pResultRequested)
onCommand in class android.service.wallpaper.WallpaperService.Engineprotected void notifyIconDropped()
public void onTouchEvent(android.view.MotionEvent event)
onTouchEvent in class android.service.wallpaper.WallpaperService.Enginepublic void onOffsetsChanged(float xOffset,
float yOffset,
float xOffsetStep,
float yOffsetStep,
int xPixelOffset,
int yPixelOffset)
onOffsetsChanged in class android.service.wallpaper.WallpaperService.Engineprotected void notifyOffsetsChanged()
protected void notifyPreviewState()
public android.app.WallpaperColors onComputeColors()
onComputeColors in class android.service.wallpaper.WallpaperService.Engine