Språk

MockContext.PeekWallpaper Method

Definition

Caution

deprecated

Throws UnsupportedOperationException. Override this method to read the cached wallpaper in a test.

[Android.Runtime.Register("peekWallpaper", "()Landroid/graphics/drawable/Drawable;", "GetPeekWallpaperHandler")]
[System.Obsolete("deprecated")]
public override Android.Graphics.Drawables.Drawable? PeekWallpaper();
[<Android.Runtime.Register("peekWallpaper", "()Landroid/graphics/drawable/Drawable;", "GetPeekWallpaperHandler")>]
[<System.Obsolete("deprecated")>]
override this.PeekWallpaper : unit -> Android.Graphics.Drawables.Drawable

Returns

No value is returned. The default mock implementation throws UnsupportedOperationException; override this method to supply a test result.

Attributes

Remarks

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