Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Nested Classes](https://developer.android.com/reference/android/app/WallpaperManager#nestedclasses) \| [Constants](https://developer.android.com/reference/android/app/WallpaperManager#constants) \| [Methods](https://developer.android.com/reference/android/app/WallpaperManager#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/app/WallpaperManager#inhmethods)

# WallpaperManager

*** ** * ** ***

` public class WallpaperManager `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.app.WallpaperManager |

<br />

*** ** * ** ***

Provides access to the system wallpaper. With WallpaperManager, you can get the current wallpaper, get the desired dimensions for the wallpaper, set the wallpaper, and more.

An app can check whether wallpapers are supported for the current user, by calling `https://developer.android.com/reference/android/app/WallpaperManager#isWallpaperSupported()`, and whether setting of wallpapers is allowed, by calling `https://developer.android.com/reference/android/app/WallpaperManager#isSetWallpaperAllowed()`. Any public APIs added to WallpaperManager should have a corresponding stub in `https://developer.android.com/`.

## Summary

| ### Nested classes ||
|---|---|
| ` interface` | `https://developer.android.com/reference/android/app/WallpaperManager.OnColorsChangedListener` Interface definition for a callback to be invoked when colors change on a wallpaper. |

| ### Constants ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/WallpaperManager#ACTION_CHANGE_LIVE_WALLPAPER` Directly launch live wallpaper preview, allowing the user to immediately confirm to switch to a specific live wallpaper. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/WallpaperManager#ACTION_CROP_AND_SET_WALLPAPER` Activity Action: Show settings for choosing wallpaper. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/WallpaperManager#ACTION_LIVE_WALLPAPER_CHOOSER` Launch an activity for the user to pick the current global live wallpaper. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/WallpaperManager#COMMAND_DROP` Command for `https://developer.android.com/reference/android/app/WallpaperManager#sendWallpaperCommand(android.os.IBinder,%20java.lang.String,%20int,%20int,%20int,%20android.os.Bundle)`: reported by the wallpaper host when the user drops an object into an area of the host. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/WallpaperManager#COMMAND_SECONDARY_TAP` Command for `https://developer.android.com/reference/android/app/WallpaperManager#sendWallpaperCommand(android.os.IBinder,%20java.lang.String,%20int,%20int,%20int,%20android.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). |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/WallpaperManager#COMMAND_TAP` Command for `https://developer.android.com/reference/android/app/WallpaperManager#sendWallpaperCommand(android.os.IBinder,%20java.lang.String,%20int,%20int,%20int,%20android.os.Bundle)`: reported by the wallpaper host when the user taps on an empty area (not performing an action in the host). |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/WallpaperManager#EXTRA_LIVE_WALLPAPER_COMPONENT` Extra in `https://developer.android.com/reference/android/app/WallpaperManager#ACTION_CHANGE_LIVE_WALLPAPER` that specifies the ComponentName of a live wallpaper that should be shown as a preview, for the user to confirm. |
| `int` | `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` Flag: set or retrieve the lock-screen-specific wallpaper. |
| `int` | `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` Flag: set or retrieve the general system wallpaper. |
| `https://developer.android.com/reference/java/lang/String` | `https://developer.android.com/reference/android/app/WallpaperManager#WALLPAPER_PREVIEW_META_DATA` Manifest entry for activities that respond to `https://developer.android.com/reference/android/content/Intent#ACTION_SET_WALLPAPER` which allows them to provide a custom large icon associated with this action. |

| ### Public methods ||
|---|---|
| ` void` | ` https://developer.android.com/reference/android/app/WallpaperManager#addOnColorsChangedListener(android.app.WallpaperManager.OnColorsChangedListener,%20android.os.Handler)(https://developer.android.com/reference/android/app/WallpaperManager.OnColorsChangedListener listener, https://developer.android.com/reference/android/os/Handler handler) ` Registers a listener to get notified when the wallpaper colors change. |
| ` void` | ` https://developer.android.com/reference/android/app/WallpaperManager#clear(int)(int which) ` Remove one or more currently set wallpapers, reverting to the system default display for each one. |
| ` void` | ` https://developer.android.com/reference/android/app/WallpaperManager#clear()() ` Remove any currently set system wallpaper, reverting to the system's built-in wallpaper. |
| ` void` | ` https://developer.android.com/reference/android/app/WallpaperManager#clearWallpaper()() ` Equivalent to `https://developer.android.com/reference/android/app/WallpaperManager#clear()`. |
| ` void` | ` https://developer.android.com/reference/android/app/WallpaperManager#clearWallpaperOffsets(android.os.IBinder)(https://developer.android.com/reference/android/os/IBinder windowToken) ` Clear the offsets previously associated with this window through `https://developer.android.com/reference/android/app/WallpaperManager#setWallpaperOffsets(android.os.IBinder,%20float,%20float)`. |
| ` void` | ` https://developer.android.com/reference/android/app/WallpaperManager#forgetLoadedWallpaper()() ` Remove all internal references to the last loaded wallpaper. |
| ` https://developer.android.com/reference/android/graphics/drawable/Drawable` | ` https://developer.android.com/reference/android/app/WallpaperManager#getBuiltInDrawable(int,%20int,%20boolean,%20float,%20float,%20int)(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. |
| ` https://developer.android.com/reference/android/graphics/drawable/Drawable` | ` https://developer.android.com/reference/android/app/WallpaperManager#getBuiltInDrawable(int)(int which) ` Obtain a drawable for the specified built-in static system wallpaper. |
| ` https://developer.android.com/reference/android/graphics/drawable/Drawable` | ` https://developer.android.com/reference/android/app/WallpaperManager#getBuiltInDrawable(int,%20int,%20boolean,%20float,%20float)(int outWidth, int outHeight, boolean scaleToFit, float horizontalAlignment, float verticalAlignment) ` Returns a drawable for the system built-in static wallpaper. |
| ` https://developer.android.com/reference/android/graphics/drawable/Drawable` | ` https://developer.android.com/reference/android/app/WallpaperManager#getBuiltInDrawable()() ` Obtain a drawable for the built-in static system wallpaper. |
| ` https://developer.android.com/reference/android/content/Intent` | ` https://developer.android.com/reference/android/app/WallpaperManager#getCropAndSetWallpaperIntent(android.net.Uri)(https://developer.android.com/reference/android/net/Uri imageUri) ` Gets an Intent that will launch an activity that crops the given image and sets the device's wallpaper. |
| ` int` | ` https://developer.android.com/reference/android/app/WallpaperManager#getDesiredMinimumHeight()() ` Returns the desired minimum height for the wallpaper. |
| ` int` | ` https://developer.android.com/reference/android/app/WallpaperManager#getDesiredMinimumWidth()() ` Returns the desired minimum width for the wallpaper. |
| ` https://developer.android.com/reference/android/graphics/drawable/Drawable` | ` https://developer.android.com/reference/android/app/WallpaperManager#getDrawable()() ` **Important note:** - Up to Android 12, this method requires the `https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE` permission. <br /> |
| ` https://developer.android.com/reference/android/graphics/drawable/Drawable` | ` https://developer.android.com/reference/android/app/WallpaperManager#getDrawable(int)(int which) ` **Important note:** only apps with `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` should use this method. |
| ` https://developer.android.com/reference/android/graphics/drawable/Drawable` | ` https://developer.android.com/reference/android/app/WallpaperManager#getFastDrawable(int)(int which) ` **Important note:** only apps with `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` should use this method. |
| ` https://developer.android.com/reference/android/graphics/drawable/Drawable` | ` https://developer.android.com/reference/android/app/WallpaperManager#getFastDrawable()() ` **Important note:** - Up to Android 12, this method requires the `https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE` permission. <br /> |
| ` static https://developer.android.com/reference/android/app/WallpaperManager` | ` https://developer.android.com/reference/android/app/WallpaperManager#getInstance(android.content.Context)(https://developer.android.com/reference/android/content/Context context) ` Retrieve a WallpaperManager associated with the given Context. |
| ` https://developer.android.com/reference/android/app/WallpaperColors` | ` https://developer.android.com/reference/android/app/WallpaperManager#getWallpaperColors(int)(int which) ` Get the primary colors of a wallpaper. |
| ` https://developer.android.com/reference/android/os/ParcelFileDescriptor` | ` https://developer.android.com/reference/android/app/WallpaperManager#getWallpaperFile(int)(int which) ` **Important note:** - Up to Android 12, this method requires the `https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE` permission. <br /> |
| ` int` | ` https://developer.android.com/reference/android/app/WallpaperManager#getWallpaperId(int)(int which) ` Get the ID of the current wallpaper of the given kind. |
| ` https://developer.android.com/reference/android/app/WallpaperInfo` | ` https://developer.android.com/reference/android/app/WallpaperManager#getWallpaperInfo(int)(int which) ` Returns the information about the designated wallpaper if its current wallpaper is a live wallpaper component. |
| ` https://developer.android.com/reference/android/app/WallpaperInfo` | ` https://developer.android.com/reference/android/app/WallpaperManager#getWallpaperInfo()() ` Returns the information about the home screen wallpaper if its current wallpaper is a live wallpaper component. |
| ` boolean` | ` https://developer.android.com/reference/android/app/WallpaperManager#hasResourceWallpaper(int)(int resid) ` Return whether any users are currently set to use the wallpaper with the given resource ID. |
| ` boolean` | ` https://developer.android.com/reference/android/app/WallpaperManager#isSetWallpaperAllowed()() ` Returns whether the calling package is allowed to set the wallpaper for the calling user. |
| ` boolean` | ` https://developer.android.com/reference/android/app/WallpaperManager#isWallpaperSupported()() ` Returns whether wallpapers are supported for the calling user. |
| ` https://developer.android.com/reference/android/graphics/drawable/Drawable` | ` https://developer.android.com/reference/android/app/WallpaperManager#peekDrawable()() ` **Important note:** - Up to Android 12, this method requires the `https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE` permission. <br /> |
| ` https://developer.android.com/reference/android/graphics/drawable/Drawable` | ` https://developer.android.com/reference/android/app/WallpaperManager#peekDrawable(int)(int which) ` **Important note:** only apps with `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` should use this method. |
| ` https://developer.android.com/reference/android/graphics/drawable/Drawable` | ` https://developer.android.com/reference/android/app/WallpaperManager#peekFastDrawable()() ` **Important note:** only apps with `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` should use this method. |
| ` https://developer.android.com/reference/android/graphics/drawable/Drawable` | ` https://developer.android.com/reference/android/app/WallpaperManager#peekFastDrawable(int)(int which) ` **Important note:** only apps with `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` should use this method. |
| ` void` | ` https://developer.android.com/reference/android/app/WallpaperManager#removeOnColorsChangedListener(android.app.WallpaperManager.OnColorsChangedListener)(https://developer.android.com/reference/android/app/WallpaperManager.OnColorsChangedListener callback) ` Stop listening to color updates. |
| ` void` | ` https://developer.android.com/reference/android/app/WallpaperManager#sendWallpaperCommand(android.os.IBinder,%20java.lang.String,%20int,%20int,%20int,%20android.os.Bundle)(https://developer.android.com/reference/android/os/IBinder windowToken, https://developer.android.com/reference/java/lang/String action, int x, int y, int z, https://developer.android.com/reference/android/os/Bundle extras) ` Send an arbitrary command to the current active wallpaper. |
| ` int` | ` https://developer.android.com/reference/android/app/WallpaperManager#setBitmap(android.graphics.Bitmap,%20android.graphics.Rect,%20boolean,%20int)(https://developer.android.com/reference/android/graphics/Bitmap fullImage, https://developer.android.com/reference/android/graphics/Rect visibleCropHint, boolean allowBackup, int which) ` Version of `https://developer.android.com/reference/android/app/WallpaperManager#setBitmap(android.graphics.Bitmap,%20android.graphics.Rect,%20boolean)` that allows the caller to specify which of the supported wallpaper categories to set. |
| ` void` | ` https://developer.android.com/reference/android/app/WallpaperManager#setBitmap(android.graphics.Bitmap)(https://developer.android.com/reference/android/graphics/Bitmap bitmap) ` Change the current system wallpaper to a bitmap. |
| ` int` | ` https://developer.android.com/reference/android/app/WallpaperManager#setBitmap(android.graphics.Bitmap,%20android.graphics.Rect,%20boolean)(https://developer.android.com/reference/android/graphics/Bitmap fullImage, https://developer.android.com/reference/android/graphics/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. |
| ` void` | ` https://developer.android.com/reference/android/app/WallpaperManager#setDisplayPadding(android.graphics.Rect)(https://developer.android.com/reference/android/graphics/Rect padding) ` Specify extra padding that the wallpaper should have outside of the display. |
| ` int` | ` https://developer.android.com/reference/android/app/WallpaperManager#setResource(int,%20int)(int resid, int which) ` Version of `https://developer.android.com/reference/android/app/WallpaperManager#setResource(int)` that allows the caller to specify which of the supported wallpaper categories to set. |
| ` void` | ` https://developer.android.com/reference/android/app/WallpaperManager#setResource(int)(int resid) ` Change the current system wallpaper to the bitmap in the given resource. |
| ` void` | ` https://developer.android.com/reference/android/app/WallpaperManager#setStream(java.io.InputStream)(https://developer.android.com/reference/java/io/InputStream bitmapData) ` Change the current system wallpaper to a specific byte stream. |
| ` int` | ` https://developer.android.com/reference/android/app/WallpaperManager#setStream(java.io.InputStream,%20android.graphics.Rect,%20boolean,%20int)(https://developer.android.com/reference/java/io/InputStream bitmapData, https://developer.android.com/reference/android/graphics/Rect visibleCropHint, boolean allowBackup, int which) ` Version of `https://developer.android.com/reference/android/app/WallpaperManager#setStream(java.io.InputStream,%20android.graphics.Rect,%20boolean)` that allows the caller to specify which of the supported wallpaper categories to set. |
| ` int` | ` https://developer.android.com/reference/android/app/WallpaperManager#setStream(java.io.InputStream,%20android.graphics.Rect,%20boolean)(https://developer.android.com/reference/java/io/InputStream bitmapData, https://developer.android.com/reference/android/graphics/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. |
| ` void` | ` https://developer.android.com/reference/android/app/WallpaperManager#setWallpaperOffsetSteps(float,%20float)(float xStep, float yStep) ` For applications that use multiple virtual screens showing a wallpaper, specify the step size between virtual screens. |
| ` void` | ` https://developer.android.com/reference/android/app/WallpaperManager#setWallpaperOffsets(android.os.IBinder,%20float,%20float)(https://developer.android.com/reference/android/os/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` | ` https://developer.android.com/reference/android/app/WallpaperManager#suggestDesiredDimensions(int,%20int)(int minimumWidth, int minimumHeight) ` For use only by the current home application, to specify the size of wallpaper it would like to use. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Constants

### ACTION_CHANGE_LIVE_WALLPAPER

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_CHANGE_LIVE_WALLPAPER
```

Directly launch live wallpaper preview, allowing the user to immediately confirm to switch to a specific live wallpaper. You must specify `https://developer.android.com/reference/android/app/WallpaperManager#EXTRA_LIVE_WALLPAPER_COMPONENT` with the ComponentName of a live wallpaper component that is to be shown.

<br />

Constant Value: "android.service.wallpaper.CHANGE_LIVE_WALLPAPER"

### ACTION_CROP_AND_SET_WALLPAPER

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_CROP_AND_SET_WALLPAPER
```

Activity Action: Show settings for choosing wallpaper. Do not use directly to construct an intent; instead, use `https://developer.android.com/reference/android/app/WallpaperManager#getCropAndSetWallpaperIntent(android.net.Uri)`.

Input: `https://developer.android.com/reference/android/content/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/\*"

<br />

Constant Value: "android.service.wallpaper.CROP_AND_SET_WALLPAPER"

### ACTION_LIVE_WALLPAPER_CHOOSER

Added in [API level 7](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String ACTION_LIVE_WALLPAPER_CHOOSER
```

Launch an activity for the user to pick the current global live wallpaper.

<br />

Constant Value: "android.service.wallpaper.LIVE_WALLPAPER_CHOOSER"

### COMMAND_DROP

Added in [API level 7](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String COMMAND_DROP
```

Command for `https://developer.android.com/reference/android/app/WallpaperManager#sendWallpaperCommand(android.os.IBinder,%20java.lang.String,%20int,%20int,%20int,%20android.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.

<br />

Constant Value: "android.home.drop"

### COMMAND_SECONDARY_TAP

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String COMMAND_SECONDARY_TAP
```

Command for `https://developer.android.com/reference/android/app/WallpaperManager#sendWallpaperCommand(android.os.IBinder,%20java.lang.String,%20int,%20int,%20int,%20android.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.

<br />

Constant Value: "android.wallpaper.secondaryTap"

### COMMAND_TAP

Added in [API level 7](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String COMMAND_TAP
```

Command for `https://developer.android.com/reference/android/app/WallpaperManager#sendWallpaperCommand(android.os.IBinder,%20java.lang.String,%20int,%20int,%20int,%20android.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.

<br />

Constant Value: "android.wallpaper.tap"

### EXTRA_LIVE_WALLPAPER_COMPONENT

Added in [API level 16](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String EXTRA_LIVE_WALLPAPER_COMPONENT
```

Extra in `https://developer.android.com/reference/android/app/WallpaperManager#ACTION_CHANGE_LIVE_WALLPAPER` that specifies the ComponentName of a live wallpaper that should be shown as a preview, for the user to confirm.

<br />

Constant Value: "android.service.wallpaper.extra.LIVE_WALLPAPER_COMPONENT"

### FLAG_LOCK

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_LOCK
```

Flag: set or retrieve the lock-screen-specific wallpaper.

<br />

Constant Value: 2 (0x00000002)

### FLAG_SYSTEM

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int FLAG_SYSTEM
```

Flag: set or retrieve the general system wallpaper.

<br />

Constant Value: 1 (0x00000001)

### WALLPAPER_PREVIEW_META_DATA

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final String WALLPAPER_PREVIEW_META_DATA
```

Manifest entry for activities that respond to `https://developer.android.com/reference/android/content/Intent#ACTION_SET_WALLPAPER` which allows them to provide a custom large icon associated with this action.

<br />

Constant Value: "android.wallpaper.preview"

## Public methods

### addOnColorsChangedListener

Added in [API level 27](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void addOnColorsChangedListener (WallpaperManager.OnColorsChangedListener listener, 
                Handler handler)
```

Registers a listener to get notified when the wallpaper colors change.

<br />

| Parameters ||
|---|---|
| `listener` | `WallpaperManager.OnColorsChangedListener`: A listener to register. This value cannot be `null`. <br /> |
| `handler` | `Handler`: Where to call it from. Will be called from the main thread if null. <br /> |

### clear

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void clear (int which)
```

Remove one or more currently set wallpapers, reverting to the system default display for each one. On success, the intent `https://developer.android.com/reference/android/content/Intent#ACTION_WALLPAPER_CHANGED` is broadcast.

- When called with `which=``https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK`, clear the lockscreen wallpaper. The home screen wallpaper will become visible on the lock screen.
- When called with `which=``https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM`, revert the home screen wallpaper to default. The lockscreen wallpaper will be unchanged: if the previous wallpaper was shared between home and lock screen, it will become lock screen only.
- When called with `which=`(`https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` \| `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM`), put the default wallpaper on both home and lock screen, removing any user defined wallpaper.

.   
Requires `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`

<br />

<br />

| Parameters ||
|---|---|
| `which` | `int`: A bitwise combination of `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` or `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/io/IOException` | If an error occurs reverting to the built-in wallpaper. |

### clear

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void clear ()
```

Remove any currently set system wallpaper, reverting to the system's built-in wallpaper. On success, the intent `https://developer.android.com/reference/android/content/Intent#ACTION_WALLPAPER_CHANGED` is broadcast.

This method requires the caller to hold the permission `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`.   

Requires `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`

<br />

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/io/IOException` | If an error occurs reverting to the built-in wallpaper. |

### clearWallpaper

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void clearWallpaper ()
```

Equivalent to `https://developer.android.com/reference/android/app/WallpaperManager#clear()`.   

Requires `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`

<br />

**See also:**

- `https://developer.android.com/reference/android/app/WallpaperManager#clear()`

### clearWallpaperOffsets

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void clearWallpaperOffsets (IBinder windowToken)
```

Clear the offsets previously associated with this window through `https://developer.android.com/reference/android/app/WallpaperManager#setWallpaperOffsets(android.os.IBinder,%20float,%20float)`. This reverts the window to its default state, where it does not cause the wallpaper to scroll from whatever its last offsets were.

<br />

| Parameters ||
|---|---|
| `windowToken` | `IBinder`: The window who these offsets should be associated with, as returned by `https://developer.android.com/reference/android/view/View#getWindowToken()`. <br /> |

### forgetLoadedWallpaper

Added in [API level 14](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void forgetLoadedWallpaper ()
```

Remove all internal references to the last loaded wallpaper. Useful for apps that want to reduce memory usage when they only temporarily need to have the wallpaper. After calling, the next request for the wallpaper will require reloading it again from disk.

<br />

### getBuiltInDrawable

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public 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. Based on the parameters, the drawable can be cropped and scaled.

<br />

| Parameters ||
|---|---|
| `outWidth` | `int`: The width of the returned drawable <br /> |
| `outHeight` | `int` <br /> |
| `scaleToFit` | `boolean`: If true, scale the wallpaper down rather than just cropping it <br /> |
| `horizontalAlignment` | `float`: 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-aligned <br /> |
| `verticalAlignment` | `float`: 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-aligned <br /> |
| `which` | `int`: The `FLAG_*` identifier of a valid wallpaper type. Throws IllegalArgumentException if an invalid wallpaper is requested. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable` | A Drawable presenting the built-in default wallpaper image of the given type, or `null` if no default image of that type is defined on this device. <br /> |

### getBuiltInDrawable

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Drawable getBuiltInDrawable (int which)
```

Obtain a drawable for the specified built-in static system wallpaper.

<br />

| Parameters ||
|---|---|
| `which` | `int`: The `FLAG_*` identifier of a valid wallpaper type. Throws IllegalArgumentException if an invalid wallpaper is requested. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable` | A Drawable presenting the specified wallpaper image, or `null` if no built-in default image for that wallpaper type exists. <br /> |

### getBuiltInDrawable

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Drawable getBuiltInDrawable (int outWidth, 
                int outHeight, 
                boolean scaleToFit, 
                float horizontalAlignment, 
                float verticalAlignment)
```

Returns a drawable for the system built-in static wallpaper. Based on the parameters, the drawable can be cropped and scaled

<br />

| Parameters ||
|---|---|
| `outWidth` | `int`: The width of the returned drawable <br /> |
| `outHeight` | `int` <br /> |
| `scaleToFit` | `boolean`: If true, scale the wallpaper down rather than just cropping it <br /> |
| `horizontalAlignment` | `float`: 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-aligned <br /> |
| `verticalAlignment` | `float`: 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-aligned <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable` | A Drawable presenting the built-in default system wallpaper image, or `null` if no such default image is defined on this device. <br /> |

### getBuiltInDrawable

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Drawable getBuiltInDrawable ()
```

Obtain a drawable for the built-in static system wallpaper.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable` | <br /> |

### getCropAndSetWallpaperIntent

Added in [API level 19](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Intent getCropAndSetWallpaperIntent (Uri imageUri)
```

Gets an Intent that will launch an activity that crops the given image and sets the device's wallpaper. If there is a default HOME activity that supports cropping wallpapers, it will be preferred as the default. Use this method instead of directly creating a `https://developer.android.com/reference/android/app/WallpaperManager#ACTION_CROP_AND_SET_WALLPAPER` intent.

<br />

| Parameters ||
|---|---|
| `imageUri` | `Uri`: 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/\*" <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/content/Intent` | <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | if the URI is not a content URI or its MIME type is not "image/\*" |

### getDesiredMinimumHeight

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getDesiredMinimumHeight ()
```

Returns the desired minimum height for the wallpaper. Callers of `https://developer.android.com/reference/android/app/WallpaperManager#setBitmap(android.graphics.Bitmap)` or `https://developer.android.com/reference/android/app/WallpaperManager#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.

<br />

| Returns ||
|---|---|
| `int` | The desired minimum height for the wallpaper. This value should be honored by applications that set the wallpaper but it is not mandatory. <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/WallpaperManager#getDesiredMinimumWidth()`

### getDesiredMinimumWidth

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getDesiredMinimumWidth ()
```

Returns the desired minimum width for the wallpaper. Callers of `https://developer.android.com/reference/android/app/WallpaperManager#setBitmap(android.graphics.Bitmap)` or `https://developer.android.com/reference/android/app/WallpaperManager#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.

<br />

| Returns ||
|---|---|
| `int` | The desired minimum width for the wallpaper. This value should be honored by applications that set the wallpaper but it is not mandatory. <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/WallpaperManager#getDesiredMinimumHeight()`

### getDrawable

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Drawable getDrawable ()
```

**Important note:**

- Up to Android 12, this method requires the `https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE` permission.
- Starting in Android 13, directly accessing the wallpaper is not possible anymore, instead the default system wallpaper is returned (some versions of Android 13 may throw a `SecurityException`).
- From Android 14, this method should not be used and will always throw a `SecurityException`.
- Apps with `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` can still access the real wallpaper on all versions.

Equivalent to `https://developer.android.com/reference/android/app/WallpaperManager#getDrawable(int)` with `which=``https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM`.
.   
Requires `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` or android.Manifest.permission.READ_WALLPAPER_INTERNAL

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable` | A Drawable object for the requested wallpaper. This value may be `null`. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/SecurityException` | as described in the note |

**See also:**

- `https://developer.android.com/reference/android/app/WallpaperManager#getDrawable(int)`

### getDrawable

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Drawable getDrawable (int which)
```

**Important note:** only apps with `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` should use this method. Otherwise, a `SecurityException` will be thrown.

Retrieve the requested wallpaper for the specified wallpaper type if the wallpaper is not a live wallpaper. This method should not be used to display the user wallpaper on an app: `https://developer.android.com/reference/android/view/WindowManager.LayoutParams#FLAG_SHOW_WALLPAPER` should be used instead.

When called with `which=``https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM`, if there is a live wallpaper on home screen, the built-in default wallpaper is returned.

When called with `which=``https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK`, if there is a live wallpaper on lock screen, or if the lock screen and home screen share the same wallpaper engine, `null` is returned.

`https://developer.android.com/reference/android/app/WallpaperManager#getWallpaperInfo(int)` can be used to determine whether there is a live wallpaper on a specified screen type.
.   
Requires `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` or android.Manifest.permission.READ_WALLPAPER_INTERNAL

<br />

<br />

| Parameters ||
|---|---|
| `which` | `int`: The `FLAG_*` identifier of a valid wallpaper type. Throws IllegalArgumentException if an invalid wallpaper is requested. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable` | A Drawable object for the requested wallpaper. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/SecurityException` | as described in the note |

### getFastDrawable

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Drawable getFastDrawable (int which)
```

**Important note:** only apps with `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` should use this method. Otherwise, a `SecurityException` will be thrown. Like `https://developer.android.com/reference/android/app/WallpaperManager#getDrawable(int)`, 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).   

Requires `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` or android.Manifest.permission.READ_WALLPAPER_INTERNAL

<br />

| Parameters ||
|---|---|
| `which` | `int`: The `FLAG_*` identifier of a valid wallpaper type. Throws IllegalArgumentException if an invalid wallpaper is requested. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable` | An optimized Drawable object for the requested wallpaper, or `null` in some cases as specified in `https://developer.android.com/reference/android/app/WallpaperManager#getDrawable(int)`. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/SecurityException` | as described in the note |

### getFastDrawable

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Drawable getFastDrawable ()
```

**Important note:**

- Up to Android 12, this method requires the `https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE` permission.
- Starting in Android 13, directly accessing the wallpaper is not possible anymore, instead the default wallpaper is returned (some versions of Android 13 may throw a `SecurityException`).
- From Android 14, this method should not be used and will always throw a `SecurityException`.
- Apps with `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` can still access the real wallpaper on all versions.

Equivalent to `https://developer.android.com/reference/android/app/WallpaperManager#getFastDrawable(int)` with `which=``https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM`.
.   
Requires `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` or android.Manifest.permission.READ_WALLPAPER_INTERNAL

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable` | A Drawable object for the requested wallpaper. This value may be `null`. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/SecurityException` | as described in the note |

**See also:**

- `https://developer.android.com/reference/android/app/WallpaperManager#getFastDrawable(int)`

### getInstance

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static WallpaperManager getInstance (Context context)
```

Retrieve a WallpaperManager associated with the given Context.

<br />

| Parameters ||
|---|---|
| `context` | `Context` <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/app/WallpaperManager` | <br /> |

### getWallpaperColors

Added in [API level 27](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WallpaperColors getWallpaperColors (int which)
```

Get the primary colors of a wallpaper.

This method can return `null` when:

- Colors are still being processed by the system.
- The user has chosen to use a live wallpaper: live wallpapers might not implement `https://developer.android.com/reference/android/service/wallpaper/WallpaperService.Engine#onComputeColors()`.

Please note that this API will go through IPC and may take some time to calculate the wallpaper color, which could block the caller thread, so it is not recommended to call this in the UI thread.

<br />

<br />

| Parameters ||
|---|---|
| `which` | `int`: Wallpaper type. Must be either `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` or `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK`. <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/app/WallpaperColors` | Current `https://developer.android.com/reference/android/app/WallpaperColors` or null if colors are unknown. <br /> |

**See also:**

- `https://developer.android.com/reference/android/app/WallpaperManager#addOnColorsChangedListener(android.app.WallpaperManager.OnColorsChangedListener,%20android.os.Handler)`

### getWallpaperFile

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public ParcelFileDescriptor getWallpaperFile (int which)
```

**Important note:**

- Up to Android 12, this method requires the `https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE` permission.
- Starting in Android 13, directly accessing the wallpaper is not possible anymore, instead the default system wallpaper is returned (some versions of Android 13 may throw a `SecurityException`).
- From Android 14, this method should not be used and will always throw a `SecurityException`.
- Apps with `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` can still access the real wallpaper on all versions.

<br />

Get an open, readable file descriptor to the given wallpaper image file. The caller is responsible for closing the file descriptor when done ingesting the file.

If no lock-specific wallpaper has been configured for the given user, then this method will return `null` when requesting `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` rather than returning the system wallpaper's image file.   

Requires `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` or android.Manifest.permission.READ_WALLPAPER_INTERNAL

<br />

| Parameters ||
|---|---|
| `which` | `int`: The wallpaper whose image file is to be retrieved. Must be a single defined kind of wallpaper, either `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` or `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/os/ParcelFileDescriptor` | An open, readable file descriptor to the requested wallpaper image file; or `null` if no such wallpaper is configured or if the calling app does not have permission to read the current wallpaper. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/SecurityException` | as described in the note |

**See also:**

- `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK`
- `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM`

### getWallpaperId

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int getWallpaperId (int which)
```

Get the ID of the current wallpaper of the given kind. If there is no such wallpaper configured, returns a negative number.

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.

<br />

| Parameters ||
|---|---|
| `which` | `int`: The wallpaper whose ID is to be returned. Must be a single defined kind of wallpaper, either `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` or `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK`. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` |

| Returns ||
|---|---|
| `int` | The positive numeric ID of the current wallpaper of the given kind, or a negative value if no such wallpaper is configured. <br /> |

### getWallpaperInfo

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WallpaperInfo getWallpaperInfo (int which)
```

Returns the information about the designated wallpaper if its current wallpaper is a live wallpaper component. Otherwise, if the wallpaper is a static image or is not set, or if the caller doesn't have the appropriate permissions, this returns `null`.

In order to use this, apps should declare a `<queries>` tag with the action `"android.service.wallpaper.WallpaperService"`. Otherwise, this method will return `null` if the caller doesn't otherwise have [visibility](https://developer.android.com/training/package-visibility) of the wallpaper package.

<br />

<br />

| Parameters ||
|---|---|
| `which` | `int`: Specifies wallpaper to request (home or lock). Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/app/WallpaperInfo` | <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | if `which` is not exactly one of {`https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM`,`https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK`}. |

### getWallpaperInfo

Added in [API level 7](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public WallpaperInfo getWallpaperInfo ()
```

Returns the information about the home screen wallpaper if its current wallpaper is a live wallpaper component. Otherwise, if the wallpaper is a static image or is not set, or if the caller doesn't have the appropriate permissions, this returns `null`.

For devices running Android 13 or earlier, this method requires the `https://developer.android.com/reference/android/Manifest.permission#QUERY_ALL_PACKAGES` permission.

For devices running Android 14 or later, in order to use this, apps should declare a `<queries>` tag with the action `"android.service.wallpaper.WallpaperService"`. Otherwise, this method will return `null` if the caller doesn't otherwise have [visibility](https://developer.android.com/training/package-visibility) of the wallpaper package.

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/app/WallpaperInfo` | <br /> |

### hasResourceWallpaper

Added in [API level 17](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean hasResourceWallpaper (int resid)
```

Return whether any users are currently set to use the wallpaper with the given resource ID. That is, their wallpaper has been set through `https://developer.android.com/reference/android/app/WallpaperManager#setResource(int)` with the same resource id.

<br />

| Parameters ||
|---|---|
| `resid` | `int` <br /> |

| Returns ||
|---|---|
| `boolean` | <br /> |

### isSetWallpaperAllowed

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isSetWallpaperAllowed ()
```

Returns whether the calling package is allowed to set the wallpaper for the calling user. If this function returns `false`, any attempts to change the wallpaper will have no effect. Always returns `true` for device owner and profile owner.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

**See also:**

- `https://developer.android.com/reference/android/os/UserManager#DISALLOW_SET_WALLPAPER`

### isWallpaperSupported

Added in [API level 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public boolean isWallpaperSupported ()
```

Returns whether wallpapers are supported for the calling user. If this function returns `false`, any attempts to changing the wallpaper will have no effect, and any attempt to obtain of the wallpaper will return `null`.

<br />

| Returns ||
|---|---|
| `boolean` | <br /> |

### peekDrawable

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Drawable peekDrawable ()
```

**Important note:**

- Up to Android 12, this method requires the `https://developer.android.com/reference/android/Manifest.permission#READ_EXTERNAL_STORAGE` permission.
- Starting in Android 13, directly accessing the wallpaper is not possible anymore, instead the default system wallpaper is returned (some versions of Android 13 may throw a `SecurityException`).
- From Android 14, this method should not be used and will always throw a `SecurityException`.
- Apps with `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` can still access the real wallpaper on all versions.

Equivalent to `https://developer.android.com/reference/android/app/WallpaperManager#getDrawable()`.
.   
Requires `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` or android.Manifest.permission.READ_WALLPAPER_INTERNAL

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable` | A Drawable object for the requested wallpaper. This value may be `null`. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/SecurityException` | as described in the note |

**See also:**

- `https://developer.android.com/reference/android/app/WallpaperManager#getDrawable()`

### peekDrawable

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Drawable peekDrawable (int which)
```

**Important note:** only apps with `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` should use this method. Otherwise, a `SecurityException` will be thrown.

Equivalent to `https://developer.android.com/reference/android/app/WallpaperManager#getDrawable(int)`.
.   
Requires `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` or android.Manifest.permission.READ_WALLPAPER_INTERNAL

<br />

<br />

| Parameters ||
|---|---|
| `which` | `int`: The `FLAG_*` identifier of a valid wallpaper type. Throws IllegalArgumentException if an invalid wallpaper is requested. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable` | A Drawable object for the requested wallpaper. This value may be `null`. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/SecurityException` | as described in the note |

**See also:**

- `https://developer.android.com/reference/android/app/WallpaperManager#getDrawable(int)`

### peekFastDrawable

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Drawable peekFastDrawable ()
```

**Important note:** only apps with `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` should use this method. Otherwise, a `SecurityException` will be thrown.

Equivalent to `https://developer.android.com/reference/android/app/WallpaperManager#getFastDrawable()`.
.   
Requires `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` or android.Manifest.permission.READ_WALLPAPER_INTERNAL

<br />

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable` | An optimized Drawable object for the requested wallpaper. This value may be `null`. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/SecurityException` | as described in the note |

**See also:**

- `https://developer.android.com/reference/android/app/WallpaperManager#getFastDrawable()`

### peekFastDrawable

Added in [API level 34](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public Drawable peekFastDrawable (int which)
```

**Important note:** only apps with `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` should use this method. Otherwise, a `SecurityException` will be thrown.

Equivalent to `https://developer.android.com/reference/android/app/WallpaperManager#getFastDrawable(int)`.
.   
Requires `https://developer.android.com/reference/android/Manifest.permission#MANAGE_EXTERNAL_STORAGE` or android.Manifest.permission.READ_WALLPAPER_INTERNAL

<br />

<br />

| Parameters ||
|---|---|
| `which` | `int`: The `FLAG_*` identifier of a valid wallpaper type. Throws IllegalArgumentException if an invalid wallpaper is requested. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/graphics/drawable/Drawable` | An optimized Drawable object for the requested wallpaper. This value may be `null`. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/lang/SecurityException` | as described in the note |

### removeOnColorsChangedListener

Added in [API level 27](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void removeOnColorsChangedListener (WallpaperManager.OnColorsChangedListener callback)
```

Stop listening to color updates.

<br />

| Parameters ||
|---|---|
| `callback` | `WallpaperManager.OnColorsChangedListener`: A callback to unsubscribe. This value cannot be `null`. <br /> |

### sendWallpaperCommand

Added in [API level 7](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

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

Send an arbitrary command to the current active wallpaper.

<br />

| Parameters ||
|---|---|
| `windowToken` | `IBinder`: The window who these offsets should be associated with, as returned by `https://developer.android.com/reference/android/view/View#getWindowToken()`. <br /> |
| `action` | `String`: Name of the command to perform. This must be a scoped name to avoid collisions, such as "com.mycompany.wallpaper.DOIT". <br /> |
| `x` | `int`: Arbitrary integer argument based on command. <br /> |
| `y` | `int`: Arbitrary integer argument based on command. <br /> |
| `z` | `int`: Arbitrary integer argument based on command. <br /> |
| `extras` | `Bundle`: Optional additional information for the command, or null. <br /> |

### setBitmap

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int setBitmap (Bitmap fullImage, 
                Rect visibleCropHint, 
                boolean allowBackup, 
                int which)
```

Version of `https://developer.android.com/reference/android/app/WallpaperManager#setBitmap(android.graphics.Bitmap,%20android.graphics.Rect,%20boolean)` that allows the caller to specify which of the supported wallpaper categories to set.   

Requires `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`

<br />

| Parameters ||
|---|---|
| `fullImage` | `Bitmap`: A bitmap that will supply the wallpaper imagery. <br /> |
| `visibleCropHint` | `Rect`: 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. <br /> |
| `allowBackup` | `boolean`: `true` if the OS is permitted to back up this wallpaper image for restore to a future device; `false` otherwise. <br /> |
| `which` | `int`: Flags indicating which wallpaper(s) to configure with the new imagery. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` |

| Returns ||
|---|---|
| `int` | An integer ID assigned to the newly active wallpaper; or zero on failure. <br /> |

| Throws ||
|---|---|
|   | java.io.IOException |
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | if the Bitmap is null |
| `https://developer.android.com/reference/java/io/IOException` |   |

**See also:**

- `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK`
- `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM`

### setBitmap

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setBitmap (Bitmap bitmap)
```

Change the current system wallpaper to a bitmap. The given bitmap is converted to a PNG and stored as the wallpaper. On success, the intent `https://developer.android.com/reference/android/content/Intent#ACTION_WALLPAPER_CHANGED` is broadcast.

This method is equivalent to calling `https://developer.android.com/reference/android/app/WallpaperManager#setBitmap(android.graphics.Bitmap,%20android.graphics.Rect,%20boolean)` and passing `null` for the `visibleCrop` rectangle and `true` for the `allowBackup` parameter.

This method requires the caller to hold the permission `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`.   

Requires `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`

<br />

| Parameters ||
|---|---|
| `bitmap` | `Bitmap`: The bitmap to be used as the new system wallpaper. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/io/IOException` | If an error occurs when attempting to set the wallpaper to the provided image. |
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | if the Bitmap is null |

### setBitmap

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public 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. The OS will then try to best present the given portion of the full image as the static system wallpaper image. On success, the intent `https://developer.android.com/reference/android/content/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 `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`.   

Requires `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`

<br />

| Parameters ||
|---|---|
| `fullImage` | `Bitmap`: A bitmap that will supply the wallpaper imagery. <br /> |
| `visibleCropHint` | `Rect`: 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. <br /> |
| `allowBackup` | `boolean`: `true` if the OS is permitted to back up this wallpaper image for restore to a future device; `false` otherwise. <br /> |

| Returns ||
|---|---|
| `int` | An integer ID assigned to the newly active wallpaper; or zero on failure. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/io/IOException` | If an error occurs when attempting to set the wallpaper to the provided image. |
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | If the `visibleCropHint` rectangle is empty or invalid or if the Bitmap is null |

### setDisplayPadding

Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setDisplayPadding (Rect padding)
```

Specify extra padding that the wallpaper should have outside of the display. That is, the given padding supplies additional pixels the wallpaper should extend outside of the display itself.

This method requires the caller to hold the permission `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER_HINTS`.   

Requires `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER_HINTS`

<br />

| Parameters ||
|---|---|
| `padding` | `Rect`: The number of pixels the wallpaper should extend beyond the display, on its left, top, right, and bottom sides. <br /> |

### setResource

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int setResource (int resid, 
                int which)
```

Version of `https://developer.android.com/reference/android/app/WallpaperManager#setResource(int)` that allows the caller to specify which of the supported wallpaper categories to set.   

Requires `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`

<br />

| Parameters ||
|---|---|
| `resid` | `int`: The resource ID of the bitmap to be used as the wallpaper image <br /> |
| `which` | `int`: Flags indicating which wallpaper(s) to configure with the new imagery. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` |

| Returns ||
|---|---|
| `int` | An integer ID assigned to the newly active wallpaper; or zero on failure. <br /> |

| Throws ||
|---|---|
|   | java.io.IOException |
| `https://developer.android.com/reference/java/io/IOException` |   |

**See also:**

- `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK`
- `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM`

### setResource

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setResource (int resid)
```

Change the current system wallpaper to the bitmap in the given resource. The resource is opened as a raw data stream and copied into the wallpaper; it must be a valid PNG or JPEG image. On success, the intent `https://developer.android.com/reference/android/content/Intent#ACTION_WALLPAPER_CHANGED` is broadcast.

This method requires the caller to hold the permission `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`.   

Requires `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`

<br />

| Parameters ||
|---|---|
| `resid` | `int`: The resource ID of the bitmap to be used as the wallpaper image <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/io/IOException` | If an error occurs reverting to the built-in wallpaper. |

### setStream

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setStream (InputStream bitmapData)
```

Change the current system wallpaper to a specific byte stream. The give InputStream is copied into persistent storage and will now be used as the wallpaper. Currently it must be either a JPEG or PNG image. On success, the intent `https://developer.android.com/reference/android/content/Intent#ACTION_WALLPAPER_CHANGED` is broadcast.

This method is equivalent to calling `https://developer.android.com/reference/android/app/WallpaperManager#setStream(java.io.InputStream,%20android.graphics.Rect,%20boolean)` and passing `null` for the `visibleCrop` rectangle and `true` for the `allowBackup` parameter.

This method requires the caller to hold the permission `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`.   

Requires `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`

<br />

| Parameters ||
|---|---|
| `bitmapData` | `InputStream`: A stream containing the raw data to install as a wallpaper. This data can be in any format handled by `https://developer.android.com/reference/android/graphics/BitmapRegionDecoder`. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/io/IOException` | If an error occurs when attempting to set the wallpaper based on the provided image data. |

### setStream

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int setStream (InputStream bitmapData, 
                Rect visibleCropHint, 
                boolean allowBackup, 
                int which)
```

Version of `https://developer.android.com/reference/android/app/WallpaperManager#setStream(java.io.InputStream,%20android.graphics.Rect,%20boolean)` that allows the caller to specify which of the supported wallpaper categories to set.   

Requires `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`

<br />

| Parameters ||
|---|---|
| `bitmapData` | `InputStream`: A stream containing the raw data to install as a wallpaper. This data can be in any format handled by `https://developer.android.com/reference/android/graphics/BitmapRegionDecoder`. <br /> |
| `visibleCropHint` | `Rect`: 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. <br /> |
| `allowBackup` | `boolean`: `true` if the OS is permitted to back up this wallpaper image for restore to a future device; `false` otherwise. <br /> |
| `which` | `int`: Flags indicating which wallpaper(s) to configure with the new imagery. Value is either `0` or a combination of the following: - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM` - `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK` |

| Returns ||
|---|---|
| `int` | An integer ID assigned to the newly active wallpaper; or zero on failure. <br /> |

| Throws ||
|---|---|
|   | java.io.IOException |
| `https://developer.android.com/reference/java/io/IOException` |   |

**See also:**

- `https://developer.android.com/reference/android/app/WallpaperManager#getWallpaperId(int)`
- `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_LOCK`
- `https://developer.android.com/reference/android/app/WallpaperManager#FLAG_SYSTEM`

### setStream

Added in [API level 24](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public 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. The OS will then try to best present the given portion of the full image as the static system wallpaper image. The data from the given InputStream is copied into persistent storage and will then be used as the system wallpaper. Currently the data must be either a JPEG or PNG image. On success, the intent `https://developer.android.com/reference/android/content/Intent#ACTION_WALLPAPER_CHANGED` is broadcast.

This method requires the caller to hold the permission `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`.   

Requires `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER`

<br />

| Parameters ||
|---|---|
| `bitmapData` | `InputStream`: A stream containing the raw data to install as a wallpaper. This data can be in any format handled by `https://developer.android.com/reference/android/graphics/BitmapRegionDecoder`. <br /> |
| `visibleCropHint` | `Rect`: 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. <br /> |
| `allowBackup` | `boolean`: `true` if the OS is permitted to back up this wallpaper image for restore to a future device; `false` otherwise. <br /> |

| Returns ||
|---|---|
| `int` | An integer ID assigned to the newly active wallpaper; or zero on failure. <br /> |

| Throws ||
|---|---|
| `https://developer.android.com/reference/java/io/IOException` | If an error occurs when attempting to set the wallpaper based on the provided image data. |
| `https://developer.android.com/reference/java/lang/IllegalArgumentException` | If the `visibleCropHint` rectangle is empty or invalid. |

**See also:**

- `https://developer.android.com/reference/android/app/WallpaperManager#getWallpaperId(int)`

### setWallpaperOffsetSteps

Added in [API level 7](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public void setWallpaperOffsetSteps (float xStep, 
                float yStep)
```

For applications that use multiple virtual screens showing a wallpaper, specify the step size between virtual screens. For example, if the launcher has 3 virtual screens, it would specify an xStep of 0.5, since the X offset for those screens are 0.0, 0.5 and 1.0

<br />

| Parameters ||
|---|---|
| `xStep` | `float`: The X offset delta from one screen to the next one <br /> |
| `yStep` | `float`: The Y offset delta from one screen to the next one <br /> |

### setWallpaperOffsets

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public 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. The X and Y offsets are floating point numbers ranging from 0 to 1, representing where the wallpaper should be positioned within the screen space. These only make sense when the wallpaper is larger than the display.

<br />

| Parameters ||
|---|---|
| `windowToken` | `IBinder`: The window who these offsets should be associated with, as returned by `https://developer.android.com/reference/android/view/View#getWindowToken()`. <br /> |
| `xOffset` | `float`: The offset along the X dimension, from 0 to 1. <br /> |
| `yOffset` | `float`: The offset along the Y dimension, from 0 to 1. <br /> |

### suggestDesiredDimensions

Added in [API level 5](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public 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. This allows such applications to have a virtual wallpaper that is larger than the physical screen, matching the size of their workspace.

Calling this method from apps other than the active home app is not guaranteed to work properly. Other apps that supply wallpaper imagery should use `https://developer.android.com/reference/android/app/WallpaperManager#getDesiredMinimumWidth()` and `https://developer.android.com/reference/android/app/WallpaperManager#getDesiredMinimumHeight()` and construct a wallpaper that matches those dimensions.

This method requires the caller to hold the permission `https://developer.android.com/reference/android/Manifest.permission#SET_WALLPAPER_HINTS`.

<br />

| Parameters ||
|---|---|
| `minimumWidth` | `int`: Desired minimum width <br /> |
| `minimumHeight` | `int`: Desired minimum height <br /> |