public class WallpaperService.Engine extends Object
| Constructor and Description |
|---|
WallpaperService.Engine() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
dump(String prefix,
FileDescriptor fd,
PrintWriter out,
String[] args) |
int |
getDesiredMinimumHeight() |
int |
getDesiredMinimumWidth() |
SurfaceHolder |
getSurfaceHolder() |
boolean |
isPreview() |
boolean |
isVisible() |
Bundle |
onCommand(String action,
int x,
int y,
int z,
Bundle extras,
boolean resultRequested) |
void |
onCreate(SurfaceHolder surfaceHolder) |
void |
onDesiredSizeChanged(int desiredWidth,
int desiredHeight) |
void |
onDestroy() |
void |
onOffsetsChanged(float xOffset,
float yOffset,
float xOffsetStep,
float yOffsetStep,
int xPixelOffset,
int yPixelOffset) |
void |
onSurfaceChanged(SurfaceHolder holder,
int format,
int width,
int height) |
void |
onSurfaceCreated(SurfaceHolder holder) |
void |
onSurfaceDestroyed(SurfaceHolder holder) |
void |
onSurfaceRedrawNeeded(SurfaceHolder holder) |
void |
onTouchEvent(MotionEvent event) |
void |
onVisibilityChanged(boolean visible) |
void |
setOffsetNotificationsEnabled(boolean enabled) |
void |
setTouchEventsEnabled(boolean enabled) |
public SurfaceHolder getSurfaceHolder()
public int getDesiredMinimumWidth()
public int getDesiredMinimumHeight()
public boolean isVisible()
public boolean isPreview()
public void setTouchEventsEnabled(boolean enabled)
public void setOffsetNotificationsEnabled(boolean enabled)
public void onCreate(SurfaceHolder surfaceHolder)
public void onDestroy()
public void onVisibilityChanged(boolean visible)
public void onTouchEvent(MotionEvent event)
public void onOffsetsChanged(float xOffset,
float yOffset,
float xOffsetStep,
float yOffsetStep,
int xPixelOffset,
int yPixelOffset)
public Bundle onCommand(String action, int x, int y, int z, Bundle extras, boolean resultRequested)
public void onDesiredSizeChanged(int desiredWidth,
int desiredHeight)
public void onSurfaceChanged(SurfaceHolder holder, int format, int width, int height)
public void onSurfaceRedrawNeeded(SurfaceHolder holder)
public void onSurfaceCreated(SurfaceHolder holder)
public void onSurfaceDestroyed(SurfaceHolder holder)
protected void dump(String prefix, FileDescriptor fd, PrintWriter out, String[] args)
Copyright © 2008-2013. All Rights Reserved.