-
public interface AndroidWallpaperListenerImplement this listener in your libGDX application additionally to 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.
-
-
Method Summary
Modifier and Type Method Description abstract voidoffsetChange(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. abstract voidpreviewStateChange(boolean isPreview)Called after 'isPreview' state had changed. abstract voidiconDropped(int x, int y)Called in response to an icon dropping on the home screen. -
-
Method Detail
-
offsetChange
abstract 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.
-
previewStateChange
abstract void previewStateChange(boolean isPreview)
Called after 'isPreview' state had changed. First time called just after application initialization.
- Parameters:
isPreview- current status, save this value and update always when this method is called if you want track livewallpaper isPreview status.
-
iconDropped
abstract void iconDropped(int x, int y)
Called in response to an icon dropping on the home screen. Not all Android launcher apps are guaranteed to support this.
-
-
-
-