public class WallpaperManager extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
ACTION_CHANGE_LIVE_WALLPAPER |
static String |
ACTION_LIVE_WALLPAPER_CHOOSER |
static String |
COMMAND_DROP |
static String |
COMMAND_SECONDARY_TAP |
static String |
COMMAND_TAP |
static String |
EXTRA_LIVE_WALLPAPER_COMPONENT |
static String |
WALLPAPER_PREVIEW_META_DATA |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
void |
clearWallpaperOffsets(IBinder windowToken) |
void |
forgetLoadedWallpaper() |
int |
getDesiredMinimumHeight() |
int |
getDesiredMinimumWidth() |
Drawable |
getDrawable() |
Drawable |
getFastDrawable() |
static WallpaperManager |
getInstance(Context context) |
WallpaperInfo |
getWallpaperInfo() |
Drawable |
peekDrawable() |
Drawable |
peekFastDrawable() |
void |
sendWallpaperCommand(IBinder windowToken,
String action,
int x,
int y,
int z,
Bundle extras) |
void |
setBitmap(Bitmap bitmap) |
void |
setResource(int resid) |
void |
setStream(InputStream data) |
void |
setWallpaperOffsets(IBinder windowToken,
float xOffset,
float yOffset) |
void |
setWallpaperOffsetSteps(float xStep,
float yStep) |
void |
suggestDesiredDimensions(int minimumWidth,
int minimumHeight) |
public static final String ACTION_LIVE_WALLPAPER_CHOOSER
public static final String ACTION_CHANGE_LIVE_WALLPAPER
public static final String EXTRA_LIVE_WALLPAPER_COMPONENT
public static final String WALLPAPER_PREVIEW_META_DATA
public static final String COMMAND_TAP
public static final String COMMAND_SECONDARY_TAP
public static final String COMMAND_DROP
public static WallpaperManager getInstance(Context context)
public Drawable getDrawable()
public Drawable peekDrawable()
public Drawable getFastDrawable()
public Drawable peekFastDrawable()
public void forgetLoadedWallpaper()
public WallpaperInfo getWallpaperInfo()
public void setResource(int resid)
throws IOException
IOExceptionpublic void setBitmap(Bitmap bitmap) throws IOException
IOExceptionpublic void setStream(InputStream data) throws IOException
IOExceptionpublic int getDesiredMinimumWidth()
public int getDesiredMinimumHeight()
public void suggestDesiredDimensions(int minimumWidth,
int minimumHeight)
public void setWallpaperOffsets(IBinder windowToken, float xOffset, float yOffset)
public void setWallpaperOffsetSteps(float xStep,
float yStep)
public void sendWallpaperCommand(IBinder windowToken, String action, int x, int y, int z, Bundle extras)
public void clearWallpaperOffsets(IBinder windowToken)
public void clear()
throws IOException
IOExceptionCopyright © 2008-2013. All Rights Reserved.