Language

WallpaperManager.PeekFastDrawable Method

Definition

Overloads

Name Description
PeekFastDrawable()

Important note: only apps with Manifest.permission.MANAGE_EXTERNAL_STORAGE should use this method.

PeekFastDrawable(WallpaperManagerFlags)

Important note: only apps with Manifest.permission.MANAGE_EXTERNAL_STORAGE should use this method.

PeekFastDrawable()

Important note: only apps with Manifest.permission.MANAGE_EXTERNAL_STORAGE should use this method.

[Android.Runtime.Register("peekFastDrawable", "()Landroid/graphics/drawable/Drawable;", "GetPeekFastDrawableHandler")]
public virtual Android.Graphics.Drawables.Drawable? PeekFastDrawable();
[<Android.Runtime.Register("peekFastDrawable", "()Landroid/graphics/drawable/Drawable;", "GetPeekFastDrawableHandler")>]
abstract member PeekFastDrawable : unit -> Android.Graphics.Drawables.Drawable
override this.PeekFastDrawable : unit -> Android.Graphics.Drawables.Drawable

Returns

An optimized Drawable object for the requested wallpaper. This value may be null.

Attributes

Remarks

Important note: only apps with Manifest.permission.MANAGE_EXTERNAL_STORAGE should use this method. Otherwise, a SecurityException will be thrown. Equivalent to getFastDrawable().

Throws: SecurityException as described in the note

Android reference for android.app.WallpaperManager.peekFastDrawable.

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

PeekFastDrawable(WallpaperManagerFlags)

Important note: only apps with Manifest.permission.MANAGE_EXTERNAL_STORAGE should use this method.

[Android.Runtime.Register("peekFastDrawable", "(I)Landroid/graphics/drawable/Drawable;", "GetPeekFastDrawable_IHandler", ApiSince=34)]
public virtual Android.Graphics.Drawables.Drawable? PeekFastDrawable(Android.App.WallpaperManagerFlags which);
[<Android.Runtime.Register("peekFastDrawable", "(I)Landroid/graphics/drawable/Drawable;", "GetPeekFastDrawable_IHandler", ApiSince=34)>]
abstract member PeekFastDrawable : Android.App.WallpaperManagerFlags -> Android.Graphics.Drawables.Drawable
override this.PeekFastDrawable : Android.App.WallpaperManagerFlags -> Android.Graphics.Drawables.Drawable

Parameters

which
WallpaperManagerFlags

The wallpaper type: either System or Lock. An invalid value can cause an IllegalArgumentException.

Returns

An optimized Drawable object for the requested wallpaper. This value may be null.

Attributes

Remarks

Important note: only apps with Manifest.permission.MANAGE_EXTERNAL_STORAGE should use this method. Otherwise, a SecurityException will be thrown. Equivalent to getFastDrawable(int).

Throws: SecurityException as described in the note

Android reference for android.app.WallpaperManager.peekFastDrawable.

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