android.app
Class WallpaperManager

java.lang.Object
  extended by android.app.WallpaperManager

public class WallpaperManager
extends Object


Field Summary
static String ACTION_LIVE_WALLPAPER_CHOOSER
           
static String COMMAND_DROP
           
static String COMMAND_SECONDARY_TAP
           
static String COMMAND_TAP
           
static String WALLPAPER_PREVIEW_META_DATA
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_LIVE_WALLPAPER_CHOOSER

public static final String ACTION_LIVE_WALLPAPER_CHOOSER
See Also:
Constant Field Values

WALLPAPER_PREVIEW_META_DATA

public static final String WALLPAPER_PREVIEW_META_DATA
See Also:
Constant Field Values

COMMAND_TAP

public static final String COMMAND_TAP
See Also:
Constant Field Values

COMMAND_SECONDARY_TAP

public static final String COMMAND_SECONDARY_TAP
See Also:
Constant Field Values

COMMAND_DROP

public static final String COMMAND_DROP
See Also:
Constant Field Values
Method Detail

getInstance

public static WallpaperManager getInstance(Context context)

getDrawable

public Drawable getDrawable()

peekDrawable

public Drawable peekDrawable()

getFastDrawable

public Drawable getFastDrawable()

peekFastDrawable

public Drawable peekFastDrawable()

forgetLoadedWallpaper

public void forgetLoadedWallpaper()

getWallpaperInfo

public WallpaperInfo getWallpaperInfo()

setResource

public void setResource(int resid)
                 throws IOException
Throws:
IOException

setBitmap

public void setBitmap(Bitmap bitmap)
               throws IOException
Throws:
IOException

setStream

public void setStream(InputStream data)
               throws IOException
Throws:
IOException

getDesiredMinimumWidth

public int getDesiredMinimumWidth()

getDesiredMinimumHeight

public int getDesiredMinimumHeight()

suggestDesiredDimensions

public void suggestDesiredDimensions(int minimumWidth,
                                     int minimumHeight)

setWallpaperOffsets

public void setWallpaperOffsets(IBinder windowToken,
                                float xOffset,
                                float yOffset)

setWallpaperOffsetSteps

public void setWallpaperOffsetSteps(float xStep,
                                    float yStep)

sendWallpaperCommand

public void sendWallpaperCommand(IBinder windowToken,
                                 String action,
                                 int x,
                                 int y,
                                 int z,
                                 Bundle extras)

clearWallpaperOffsets

public void clearWallpaperOffsets(IBinder windowToken)

clear

public void clear()
           throws IOException
Throws:
IOException


Copyright © 2008-2012. All Rights Reserved.