WallpaperManager.Drawable Property

Definition

<strong> Important note: </strong> <ul> <li>Up to Android 12, this method requires the android.Manifest.permission#READ_EXTERNAL_STORAGE permission.

public virtual Android.Graphics.Drawables.Drawable? Drawable { [Android.Runtime.Register("getDrawable", "()Landroid/graphics/drawable/Drawable;", "GetGetDrawableHandler")] get; }
[<get: Android.Runtime.Register("getDrawable", "()Landroid/graphics/drawable/Drawable;", "GetGetDrawableHandler")>]
member this.Drawable : Android.Graphics.Drawables.Drawable

Property Value

A Drawable object for the requested wallpaper.

Attributes

Remarks

<strong> Important note: </strong> <ul> <li>Up to Android 12, this method requires the android.Manifest.permission#READ_EXTERNAL_STORAGE permission.</li> <li>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).</li> <li>From Android 14, this method should not be used and will always throw a SecurityException.</li> <li> Apps with android.Manifest.permission#MANAGE_EXTERNAL_STORAGE can still access the real wallpaper on all versions. </li> </ul>

Equivalent to #getDrawable(int) with which=#FLAG_SYSTEM.

Java documentation for android.app.WallpaperManager.getDrawable().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to