public class AndroidLiveWallpaperService.AndroidWallpaperEngine
extends android.service.wallpaper.WallpaperService.Engine
| Constructor and Description |
|---|
AndroidWallpaperEngine() |
| Modifier and Type | Method and Description |
|---|---|
android.os.Bundle |
onCommand(String pAction,
int pX,
int pY,
int pZ,
android.os.Bundle pExtras,
boolean pResultRequested) |
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.
|
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(String pAction, int pX, int pY, int pZ, android.os.Bundle pExtras, boolean pResultRequested)
onCommand in class android.service.wallpaper.WallpaperService.Enginepublic 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.EngineCopyright © 2015. All rights reserved.