|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface AndroidWallpaperListener
Implement this listener in your libGDX application additionally to ApplicationListener if you want receive live
wallpaper specific events, ex: MyApplication implements ApplicationListener, AndroidWallpaperListener
Notice! This callbacks will work only if app is running as android live wallpaper: you have to link application with
AndroidLiveWallpaperService from in gdx-android-backend
Notice libGDX developers! If you do not like android specific classes in gdx backend, you can rename this class to for example:
com.badlogic.gdx.WallpaperListener so it will be 'generic' and not 'android specific', but besides of point of view the fact is
that live wallpapers are available only on android devices so far.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||