public interface AndroidWallpaperListener
ApplicationListener if you want receive live
wallpaper specific events, ex: MyApplication implements ApplicationListener, AndroidWallpaperListener. The callbacks
will only be called if the ApplicationListener is running from an AndroidLiveWallpaperService.
| Modifier and Type | Method and Description |
|---|---|
void |
iconDropped(int x,
int y)
Called in response to an icon dropping on the home screen.
|
void |
offsetChange(float xOffset,
float yOffset,
float xOffsetStep,
float yOffsetStep,
int xPixelOffset,
int yPixelOffset)
Called on the rendering thread after the live wallpaper's offset had changed.
|
void |
previewStateChange(boolean isPreview)
Called after 'isPreview' state had changed.
|
void offsetChange(float xOffset,
float yOffset,
float xOffsetStep,
float yOffsetStep,
int xPixelOffset,
int yPixelOffset)
xOffset - yOffset - xOffsetStep - yOffsetStep - xPixelOffset - yPixelOffset - void previewStateChange(boolean isPreview)
isPreview - current status, save this value and update always when this method is called if you want track live
wallpaper isPreview status.void iconDropped(int x,
int y)
Copyright © 2017. All rights reserved.