public class WallpaperManager extends Object
getInstance()
.
An app can check whether wallpapers are supported for the current user, by calling
isWallpaperSupported()
, and whether setting of wallpapers is allowed, by calling
isSetWallpaperAllowed()
.
Modifier and Type | Class and Description |
---|---|
static interface |
WallpaperManager.SetWallpaperFlags |
Modifier and Type | Field and Description |
---|---|
static String |
ACTION_CHANGE_LIVE_WALLPAPER
Directly launch live wallpaper preview, allowing the user to immediately
confirm to switch to a specific live wallpaper.
|
static String |
ACTION_CROP_AND_SET_WALLPAPER
Activity Action: Show settings for choosing wallpaper.
|
static String |
ACTION_LIVE_WALLPAPER_CHOOSER
Launch an activity for the user to pick the current global live
wallpaper.
|
static String |
COMMAND_DROP
Command for
sendWallpaperCommand(android.os.IBinder, java.lang.String, int, int, int, android.os.Bundle) : reported by the wallpaper
host when the user drops an object into an area of the host. |
static String |
COMMAND_SECONDARY_TAP
Command for
sendWallpaperCommand(android.os.IBinder, java.lang.String, int, int, int, android.os.Bundle) : reported by the wallpaper
host when the user releases a secondary pointer on an empty area
(not performing an action in the host). |
static String |
COMMAND_TAP
Command for
sendWallpaperCommand(android.os.IBinder, java.lang.String, int, int, int, android.os.Bundle) : reported by the wallpaper
host when the user taps on an empty area (not performing an action
in the host). |
static String |
EXTRA_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. |
static String |
EXTRA_NEW_WALLPAPER_ID
Extra passed back from setWallpaper() giving the new wallpaper's assigned ID.
|
static int |
FLAG_LOCK
Flag: set or retrieve the lock-screen-specific wallpaper.
|
static int |
FLAG_SYSTEM
Flag: set or retrieve the general system wallpaper.
|
static String |
WALLPAPER_PREVIEW_META_DATA
Manifest entry for activities that respond to
Intent.ACTION_SET_WALLPAPER
which allows them to provide a custom large icon associated with this action. |
Modifier and Type | Method and Description |
---|---|
void |
clear()
Remove any currently set system wallpaper, reverting to the system's built-in
wallpaper.
|
void |
clear(int which)
Remove one or more currently set wallpapers, reverting to the system default
display for each one.
|
void |
clearWallpaper()
Clear the wallpaper.
|
void |
clearWallpaper(int which,
int userId)
Clear the wallpaper for a specific user.
|
void |
clearWallpaperOffsets(IBinder windowToken)
Clear the offsets previously associated with this window through
setWallpaperOffsets(IBinder, float, float) . |
void |
forgetLoadedWallpaper()
Remove all internal references to the last loaded wallpaper.
|
Bitmap |
getBitmap()
Like
getDrawable() but returns a Bitmap. |
Bitmap |
getBitmapAsUser(int userId)
Like
getDrawable() but returns a Bitmap for the provided user. |
Drawable |
getBuiltInDrawable()
Obtain a drawable for the built-in static system wallpaper.
|
Drawable |
getBuiltInDrawable(int which)
Obtain a drawable for the specified built-in static system wallpaper.
|
Drawable |
getBuiltInDrawable(int outWidth,
int outHeight,
boolean scaleToFit,
float horizontalAlignment,
float verticalAlignment)
Returns a drawable for the system built-in static wallpaper.
|
Drawable |
getBuiltInDrawable(int outWidth,
int outHeight,
boolean scaleToFit,
float horizontalAlignment,
float verticalAlignment,
int which)
Returns a drawable for the built-in static wallpaper of the specified type.
|
Intent |
getCropAndSetWallpaperIntent(Uri imageUri)
Gets an Intent that will launch an activity that crops the given
image and sets the device's wallpaper.
|
static ComponentName |
getDefaultWallpaperComponent(Context context)
Return
ComponentName of the default live wallpaper, or
null if none is defined. |
int |
getDesiredMinimumHeight()
Returns the desired minimum height for the wallpaper.
|
int |
getDesiredMinimumWidth()
Returns the desired minimum width for the wallpaper.
|
Drawable |
getDrawable()
Retrieve the current system wallpaper; if
no wallpaper is set, the system built-in static wallpaper is returned.
|
Drawable |
getFastDrawable()
Like
getDrawable() , but the returned Drawable has a number
of limitations to reduce its overhead as much as possible. |
static WallpaperManager |
getInstance(Context context)
Retrieve a WallpaperManager associated with the given Context.
|
IWallpaperManager |
getIWallpaperManager() |
ParcelFileDescriptor |
getWallpaperFile(int which)
Get an open, readable file descriptor to the given wallpaper image file.
|
ParcelFileDescriptor |
getWallpaperFile(int which,
int userId)
Version of
getWallpaperFile(int) that can access the wallpaper data
for a given user. |
int |
getWallpaperId(int which)
Get the ID of the current wallpaper of the given kind.
|
int |
getWallpaperIdForUser(int which,
int userId)
Get the ID of the given user's current wallpaper of the given kind.
|
WallpaperInfo |
getWallpaperInfo()
If the current wallpaper is a live wallpaper component, return the
information about that wallpaper.
|
boolean |
hasResourceWallpaper(int resid)
Return whether any users are currently set to use the wallpaper
with the given resource ID.
|
boolean |
isSetWallpaperAllowed()
Returns whether the calling package is allowed to set the wallpaper for the calling user.
|
boolean |
isWallpaperBackupEligible(int which)
Is the current system wallpaper eligible for backup?
|
boolean |
isWallpaperSupported()
Returns whether wallpapers are supported for the calling user.
|
static InputStream |
openDefaultWallpaper(Context context,
int which)
Open stream representing the default static image wallpaper.
|
Drawable |
peekDrawable()
Retrieve the current system wallpaper; if there is no wallpaper set,
a null pointer is returned.
|
Drawable |
peekFastDrawable()
Like
getFastDrawable() , but if there is no wallpaper set,
a null pointer is returned. |
void |
sendWallpaperCommand(IBinder windowToken,
String action,
int x,
int y,
int z,
Bundle extras)
Send an arbitrary command to the current active wallpaper.
|
void |
setBitmap(Bitmap bitmap)
Change the current system wallpaper to a bitmap.
|
int |
setBitmap(Bitmap fullImage,
Rect visibleCropHint,
boolean allowBackup)
Change the current system wallpaper to a bitmap, specifying a hint about
which subrectangle of the full image is to be visible.
|
int |
setBitmap(Bitmap fullImage,
Rect visibleCropHint,
boolean allowBackup,
int which)
Version of
setBitmap(Bitmap, Rect, boolean) that allows the caller
to specify which of the supported wallpaper categories to set. |
int |
setBitmap(Bitmap fullImage,
Rect visibleCropHint,
boolean allowBackup,
int which,
int userId)
Like
setBitmap(Bitmap, Rect, boolean, int) , but allows to pass in an explicit user
id. |
void |
setDisplayOffset(IBinder windowToken,
int x,
int y)
Apply a raw offset to the wallpaper window.
|
void |
setDisplayPadding(Rect padding)
Specify extra padding that the wallpaper should have outside of the display.
|
boolean |
setLockWallpaperCallback(IWallpaperManagerCallback callback)
Register a callback for lock wallpaper observation.
|
void |
setResource(int resid)
Change the current system wallpaper to the bitmap in the given resource.
|
int |
setResource(int resid,
int which)
Version of
setResource(int) that allows the caller to specify which
of the supported wallpaper categories to set. |
void |
setStream(InputStream bitmapData)
Change the current system wallpaper to a specific byte stream.
|
int |
setStream(InputStream bitmapData,
Rect visibleCropHint,
boolean allowBackup)
Change the current system wallpaper to a specific byte stream, specifying a
hint about which subrectangle of the full image is to be visible.
|
int |
setStream(InputStream bitmapData,
Rect visibleCropHint,
boolean allowBackup,
int which)
Version of
setStream(InputStream, Rect, boolean) that allows the caller
to specify which of the supported wallpaper categories to set. |
boolean |
setWallpaperComponent(ComponentName name)
Set the live wallpaper.
|
boolean |
setWallpaperComponent(ComponentName name,
int userId)
Set the live wallpaper.
|
void |
setWallpaperOffsets(IBinder windowToken,
float xOffset,
float yOffset)
Set the display position of the current wallpaper within any larger space, when
that wallpaper is visible behind the given window.
|
void |
setWallpaperOffsetSteps(float xStep,
float yStep)
For applications that use multiple virtual screens showing a wallpaper,
specify the step size between virtual screens.
|
void |
suggestDesiredDimensions(int minimumWidth,
int minimumHeight)
For use only by the current home application, to specify the size of
wallpaper it would like to use.
|
public static final String ACTION_CROP_AND_SET_WALLPAPER
getCropAndSetWallpaperIntent(android.net.Uri)
.
Input: Intent.getData()
is the URI of the image to crop and set as wallpaper.
Output: RESULT_OK if user decided to crop/set the wallpaper, RESULT_CANCEL otherwise Activities that support this intent should specify a MIME filter of "image/*"
public static final String ACTION_LIVE_WALLPAPER_CHOOSER
public static final String ACTION_CHANGE_LIVE_WALLPAPER
EXTRA_LIVE_WALLPAPER_COMPONENT
with the ComponentName of
a live wallpaper component that is to be shown.public static final String EXTRA_LIVE_WALLPAPER_COMPONENT
ACTION_CHANGE_LIVE_WALLPAPER
that specifies the
ComponentName of a live wallpaper that should be shown as a preview,
for the user to confirm.public static final String WALLPAPER_PREVIEW_META_DATA
Intent.ACTION_SET_WALLPAPER
which allows them to provide a custom large icon associated with this action.public static final String COMMAND_TAP
sendWallpaperCommand(android.os.IBinder, java.lang.String, int, int, int, android.os.Bundle)
: reported by the wallpaper
host when the user taps on an empty area (not performing an action
in the host). The x and y arguments are the location of the tap in
screen coordinates.public static final String COMMAND_SECONDARY_TAP
sendWallpaperCommand(android.os.IBinder, java.lang.String, int, int, int, android.os.Bundle)
: reported by the wallpaper
host when the user releases a secondary pointer on an empty area
(not performing an action in the host). The x and y arguments are
the location of the secondary tap in screen coordinates.public static final String COMMAND_DROP
sendWallpaperCommand(android.os.IBinder, java.lang.String, int, int, int, android.os.Bundle)
: reported by the wallpaper
host when the user drops an object into an area of the host. The x
and y arguments are the location of the drop.public static final String EXTRA_NEW_WALLPAPER_ID
public static final int FLAG_SYSTEM
public static final int FLAG_LOCK
public static WallpaperManager getInstance(Context context)
public IWallpaperManager getIWallpaperManager()
public Drawable getDrawable()
This method can return null if there is no system wallpaper available, if wallpapers are not supported in the current user, or if the calling app is not permitted to access the system wallpaper.
null
if no system wallpaper exists or if the calling application
is not able to access the wallpaper.public Drawable getBuiltInDrawable()
public Drawable getBuiltInDrawable(int which)
which
- The FLAG_*
identifier of a valid wallpaper type. Throws
IllegalArgumentException if an invalid wallpaper is requested.null
if no built-in default image for that wallpaper type exists.public Drawable getBuiltInDrawable(int outWidth, int outHeight, boolean scaleToFit, float horizontalAlignment, float verticalAlignment)
outWidth
- The width of the returned drawableoutWidth
- The height of the returned drawablescaleToFit
- If true, scale the wallpaper down rather than just cropping ithorizontalAlignment
- A float value between 0 and 1 specifying where to crop the image;
0 for left-aligned, 0.5 for horizontal center-aligned, and 1 for right-alignedverticalAlignment
- A float value between 0 and 1 specifying where to crop the image;
0 for top-aligned, 0.5 for vertical center-aligned, and 1 for bottom-alignednull
if no such default image is defined on this device.public Drawable getBuiltInDrawable(int outWidth, int outHeight, boolean scaleToFit, float horizontalAlignment, float verticalAlignment, int which)
outWidth
- The width of the returned drawableoutWidth
- The height of the returned drawablescaleToFit
- If true, scale the wallpaper down rather than just cropping ithorizontalAlignment
- A float value between 0 and 1 specifying where to crop the image;
0 for left-aligned, 0.5 for horizontal center-aligned, and 1 for right-alignedverticalAlignment
- A float value between 0 and 1 specifying where to crop the image;
0 for top-aligned, 0.5 for vertical center-aligned, and 1 for bottom-alignedwhich
- The FLAG_*
identifier of a valid wallpaper type. Throws
IllegalArgumentException if an invalid wallpaper is requested.null
if no default image of that type is defined on this device.public Drawable peekDrawable()
public Drawable getFastDrawable()
getDrawable()
, but the returned Drawable has a number
of limitations to reduce its overhead as much as possible. It will
never scale the wallpaper (only centering it if the requested bounds
do match the bitmap bounds, which should not be typical), doesn't
allow setting an alpha, color filter, or other attributes, etc. The
bounds of the returned drawable will be initialized to the same bounds
as the wallpaper, so normally you will not need to touch it. The
drawable also assumes that it will be used in a context running in
the same density as the screen (not in density compatibility mode).public Drawable peekFastDrawable()
getFastDrawable()
, but if there is no wallpaper set,
a null pointer is returned.public Bitmap getBitmap()
getDrawable()
but returns a Bitmap.public Bitmap getBitmapAsUser(int userId)
getDrawable()
but returns a Bitmap for the provided user.public ParcelFileDescriptor getWallpaperFile(int which)
If no lock-specific wallpaper has been configured for the given user, then
this method will return null
when requesting FLAG_LOCK
rather than
returning the system wallpaper's image file.
which
- The wallpaper whose image file is to be retrieved. Must be a single
defined kind of wallpaper, either FLAG_SYSTEM
or
FLAG_LOCK
.FLAG_LOCK
,
FLAG_SYSTEM
public ParcelFileDescriptor getWallpaperFile(int which, int userId)
getWallpaperFile(int)
that can access the wallpaper data
for a given user. The caller must hold the INTERACT_ACROSS_USERS_FULL
permission to access another user's wallpaper data.which
- The wallpaper whose image file is to be retrieved. Must be a single
defined kind of wallpaper, either FLAG_SYSTEM
or
FLAG_LOCK
.userId
- The user or profile whose imagery is to be retrievedFLAG_LOCK
,
FLAG_SYSTEM
public void forgetLoadedWallpaper()
public WallpaperInfo getWallpaperInfo()
public int getWallpaperId(int which)
Every time the wallpaper image is set, a new ID is assigned to it. This method allows the caller to determine whether the wallpaper imagery has changed, regardless of how that change happened.
which
- The wallpaper whose ID is to be returned. Must be a single
defined kind of wallpaper, either FLAG_SYSTEM
or
FLAG_LOCK
.public int getWallpaperIdForUser(int which, int userId)
public Intent getCropAndSetWallpaperIntent(Uri imageUri)
ACTION_CROP_AND_SET_WALLPAPER
intent.imageUri
- The image URI that will be set in the intent. The must be a content
URI and its provider must resolve its type to "image/*"IllegalArgumentException
- if the URI is not a content URI or its MIME type is
not "image/*"public void setResource(@RawRes int resid) throws IOException
Intent.ACTION_WALLPAPER_CHANGED
is broadcast.
This method requires the caller to hold the permission
android.Manifest.permission#SET_WALLPAPER
.
resid
- The resource ID of the bitmap to be used as the wallpaper imageIOException
- If an error occurs reverting to the built-in
wallpaper.public int setResource(@RawRes int resid, int which) throws IOException
setResource(int)
that allows the caller to specify which
of the supported wallpaper categories to set.resid
- The resource ID of the bitmap to be used as the wallpaper imagewhich
- Flags indicating which wallpaper(s) to configure with the new imageryIOException
FLAG_LOCK
,
FLAG_SYSTEM
public void setBitmap(Bitmap bitmap) throws IOException
Intent.ACTION_WALLPAPER_CHANGED
is broadcast.
This method is equivalent to calling
setBitmap(Bitmap, Rect, boolean)
and passing null
for the
visibleCrop
rectangle and true
for the allowBackup
parameter.
This method requires the caller to hold the permission
android.Manifest.permission#SET_WALLPAPER
.
bitmap
- The bitmap to be used as the new system wallpaper.IOException
- If an error occurs when attempting to set the wallpaper
to the provided image.public int setBitmap(Bitmap fullImage, Rect visibleCropHint, boolean allowBackup) throws IOException
Intent.ACTION_WALLPAPER_CHANGED
is broadcast.
Passing null
as the visibleHint
parameter is equivalent to
passing (0, 0, fullImage.getWidth()
, fullImage.getHeight()
).
This method requires the caller to hold the permission
android.Manifest.permission#SET_WALLPAPER
.
fullImage
- A bitmap that will supply the wallpaper imagery.visibleCropHint
- The rectangular subregion of fullImage
that should be
displayed as wallpaper. Passing null
for this parameter means that
the full image should be displayed if possible given the image's and device's
aspect ratios, etc.allowBackup
- true
if the OS is permitted to back up this wallpaper
image for restore to a future device; false
otherwise.IOException
- If an error occurs when attempting to set the wallpaper
to the provided image.IllegalArgumentException
- If the visibleCropHint
rectangle is
empty or invalid.public int setBitmap(Bitmap fullImage, Rect visibleCropHint, boolean allowBackup, int which) throws IOException
setBitmap(Bitmap, Rect, boolean)
that allows the caller
to specify which of the supported wallpaper categories to set.fullImage
- A bitmap that will supply the wallpaper imagery.visibleCropHint
- The rectangular subregion of fullImage
that should be
displayed as wallpaper. Passing null
for this parameter means that
the full image should be displayed if possible given the image's and device's
aspect ratios, etc.allowBackup
- true
if the OS is permitted to back up this wallpaper
image for restore to a future device; false
otherwise.which
- Flags indicating which wallpaper(s) to configure with the new imagery.IOException
FLAG_LOCK
,
FLAG_SYSTEM
public int setBitmap(Bitmap fullImage, Rect visibleCropHint, boolean allowBackup, int which, int userId) throws IOException
setBitmap(Bitmap, Rect, boolean, int)
, but allows to pass in an explicit user
id. If the user id doesn't match the user id the process is running under, calling this
requires permission android.Manifest.permission#INTERACT_ACROSS_USERS_FULL
.IOException
public void setStream(InputStream bitmapData) throws IOException
Intent.ACTION_WALLPAPER_CHANGED
is broadcast.
This method is equivalent to calling
setStream(InputStream, Rect, boolean)
and passing null
for the
visibleCrop
rectangle and true
for the allowBackup
parameter.
This method requires the caller to hold the permission
android.Manifest.permission#SET_WALLPAPER
.
bitmapData
- A stream containing the raw data to install as a wallpaper. This
data can be in any format handled by BitmapRegionDecoder
.IOException
- If an error occurs when attempting to set the wallpaper
based on the provided image data.public int setStream(InputStream bitmapData, Rect visibleCropHint, boolean allowBackup) throws IOException
Intent.ACTION_WALLPAPER_CHANGED
is broadcast.
This method requires the caller to hold the permission
android.Manifest.permission#SET_WALLPAPER
.
bitmapData
- A stream containing the raw data to install as a wallpaper. This
data can be in any format handled by BitmapRegionDecoder
.visibleCropHint
- The rectangular subregion of the streamed image that should be
displayed as wallpaper. Passing null
for this parameter means that
the full image should be displayed if possible given the image's and device's
aspect ratios, etc.allowBackup
- true
if the OS is permitted to back up this wallpaper
image for restore to a future device; false
otherwise.IOException
- If an error occurs when attempting to set the wallpaper
based on the provided image data.IllegalArgumentException
- If the visibleCropHint
rectangle is
empty or invalid.getWallpaperId(int)
public int setStream(InputStream bitmapData, Rect visibleCropHint, boolean allowBackup, int which) throws IOException
setStream(InputStream, Rect, boolean)
that allows the caller
to specify which of the supported wallpaper categories to set.bitmapData
- A stream containing the raw data to install as a wallpaper. This
data can be in any format handled by BitmapRegionDecoder
.visibleCropHint
- The rectangular subregion of the streamed image that should be
displayed as wallpaper. Passing null
for this parameter means that
the full image should be displayed if possible given the image's and device's
aspect ratios, etc.allowBackup
- true
if the OS is permitted to back up this wallpaper
image for restore to a future device; false
otherwise.which
- Flags indicating which wallpaper(s) to configure with the new imagery.IOException
getWallpaperId(int)
,
FLAG_LOCK
,
FLAG_SYSTEM
public boolean hasResourceWallpaper(@RawRes int resid)
setResource(int)
with the same resource id.public int getDesiredMinimumWidth()
setBitmap(android.graphics.Bitmap)
or
setStream(java.io.InputStream)
should check this value
beforehand to make sure the supplied wallpaper respects the desired
minimum width.
If the returned value is <= 0, the caller should use the width of
the default display instead.public int getDesiredMinimumHeight()
setBitmap(android.graphics.Bitmap)
or
setStream(java.io.InputStream)
should check this value
beforehand to make sure the supplied wallpaper respects the desired
minimum height.
If the returned value is <= 0, the caller should use the height of
the default display instead.public void suggestDesiredDimensions(int minimumWidth, int minimumHeight)
Note developers, who don't seem to be reading this. This is for home apps to tell what size wallpaper they would like. Nobody else should be calling this! Certainly not other non-home apps that change the wallpaper. Those apps are supposed to retrieve the suggested size so they can construct a wallpaper that matches it.
This method requires the caller to hold the permission
android.Manifest.permission#SET_WALLPAPER_HINTS
.
minimumWidth
- Desired minimum widthminimumHeight
- Desired minimum heightpublic void setDisplayPadding(Rect padding)
padding
- The number of pixels the wallpaper should extend beyond the display,
on its left, top, right, and bottom sides.public void setDisplayOffset(IBinder windowToken, int x, int y)
setDisplayPadding(android.graphics.Rect)
when you
have ensured that the wallpaper will extend outside of the display area so that
it can be moved without leaving part of the display uncovered.x
- The offset, in pixels, to apply to the left edge.y
- The offset, in pixels, to apply to the top edge.public void clearWallpaper()
public void clearWallpaper(int which, int userId)
public boolean setWallpaperComponent(ComponentName name)
public boolean setWallpaperComponent(ComponentName name, int userId)
public void setWallpaperOffsets(IBinder windowToken, float xOffset, float yOffset)
windowToken
- The window who these offsets should be associated
with, as returned by View.getWindowToken()
.xOffset
- The offset along the X dimension, from 0 to 1.yOffset
- The offset along the Y dimension, from 0 to 1.public void setWallpaperOffsetSteps(float xStep, float yStep)
xStep
- The X offset delta from one screen to the next oneyStep
- The Y offset delta from one screen to the next onepublic void sendWallpaperCommand(IBinder windowToken, String action, int x, int y, int z, Bundle extras)
windowToken
- The window who these offsets should be associated
with, as returned by View.getWindowToken()
.action
- Name of the command to perform. This must be a scoped
name to avoid collisions, such as "com.mycompany.wallpaper.DOIT".x
- Arbitrary integer argument based on command.y
- Arbitrary integer argument based on command.z
- Arbitrary integer argument based on command.extras
- Optional additional information for the command, or null.public boolean isWallpaperSupported()
false
, any attempts to changing the wallpaper will have no effect,
and any attempt to obtain of the wallpaper will return null
.public boolean isSetWallpaperAllowed()
false
, any attempts to change the wallpaper will have
no effect. Always returns true
for device owner and profile owner.UserManager.DISALLOW_SET_WALLPAPER
public void clearWallpaperOffsets(IBinder windowToken)
setWallpaperOffsets(IBinder, float, float)
. This reverts
the window to its default state, where it does not cause the wallpaper
to scroll from whatever its last offsets were.windowToken
- The window who these offsets should be associated
with, as returned by View.getWindowToken()
.public void clear() throws IOException
Intent.ACTION_WALLPAPER_CHANGED
is broadcast.
This method requires the caller to hold the permission
android.Manifest.permission#SET_WALLPAPER
.
IOException
- If an error occurs reverting to the built-in
wallpaper.public void clear(int which) throws IOException
FLAG_SYSTEM
is set in the which
parameter, the intent Intent.ACTION_WALLPAPER_CHANGED
will be broadcast
upon success.which
- A bitwise combination of FLAG_SYSTEM
or
FLAG_LOCK
IOException
- If an error occurs reverting to the built-in wallpaper.public static InputStream openDefaultWallpaper(Context context, int which)
null
is returned.public static ComponentName getDefaultWallpaperComponent(Context context)
ComponentName
of the default live wallpaper, or
null
if none is defined.public boolean setLockWallpaperCallback(IWallpaperManagerCallback callback)
public boolean isWallpaperBackupEligible(int which)