Java android.app WallpaperManager fields, constructors, methods, implement or subclass

Example usage for Java android.app WallpaperManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.app WallpaperManager.

The text is from its open source code.

Field

StringACTION_LIVE_WALLPAPER_CHOOSER
Launch an activity for the user to pick the current global live wallpaper.
StringACTION_CHANGE_LIVE_WALLPAPER
Directly launch live wallpaper preview, allowing the user to immediately confirm to switch to a specific live wallpaper.
StringEXTRA_LIVE_WALLPAPER_COMPONENT
Extra in #ACTION_CHANGE_LIVE_WALLPAPER that specifies the ComponentName of a live wallpaper that should be shown as a preview, for the user to confirm.
StringCOMMAND_TAP
Command for #sendWallpaperCommand : reported by the wallpaper host when the user taps on an empty area (not performing an action in the host).
StringCOMMAND_SECONDARY_TAP
Command for #sendWallpaperCommand : reported by the wallpaper host when the user releases a secondary pointer on an empty area (not performing an action in the host).
intFLAG_SYSTEM
Flag: set or retrieve the general system wallpaper.
intFLAG_LOCK
Flag: set or retrieve the lock-screen-specific wallpaper.

Method

ClassgetClass()
Returns the runtime class of this Object .
IntentgetCropAndSetWallpaperIntent(Uri imageUri)
Gets an Intent that will launch an activity that crops the given image and sets the device's wallpaper.
intgetDesiredMinimumHeight()
Returns the desired minimum height for the wallpaper.
intgetDesiredMinimumWidth()
Returns the desired minimum width for the wallpaper.
DrawablegetDrawable()
Retrieve the current system wallpaper; if no wallpaper is set, the system built-in static wallpaper is returned.
DrawablegetFastDrawable()
Like #getDrawable() , but the returned Drawable has a number of limitations to reduce its overhead as much as possible.
WallpaperManagergetInstance(Context context)
Retrieve a WallpaperManager associated with the given Context.
WallpaperInfogetWallpaperInfo()
If the current wallpaper is a live wallpaper component, return the information about that wallpaper.
DrawablepeekFastDrawable()
Like #getFastDrawable() , but if there is no wallpaper set, a null pointer is returned.
voidsetBitmap(Bitmap bitmap)
Change the current system wallpaper to a bitmap.
voidsetResource(@RawRes int resid)
Change the current system wallpaper to the bitmap in the given resource.
voidsetStream(InputStream bitmapData)
Change the current system wallpaper to a specific byte stream.