Język

MockContext.SetWallpaper Method

Definition

Overloads

Name Description
SetWallpaper(Bitmap)
Obsolete.

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

SetWallpaper(Stream)
Obsolete.

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

SetWallpaper(Bitmap)

Caution

deprecated

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

[Android.Runtime.Register("setWallpaper", "(Landroid/graphics/Bitmap;)V", "GetSetWallpaper_Landroid_graphics_Bitmap_Handler")]
[System.Obsolete("deprecated")]
public override void SetWallpaper(Android.Graphics.Bitmap? bitmap);
[<Android.Runtime.Register("setWallpaper", "(Landroid/graphics/Bitmap;)V", "GetSetWallpaper_Landroid_graphics_Bitmap_Handler")>]
[<System.Obsolete("deprecated")>]
override this.SetWallpaper : Android.Graphics.Bitmap -> unit

Parameters

bitmap
Bitmap

The bitmap for the wallpaper. Available to a test override; the default mock implementation does not use this argument.

Attributes

Exceptions

Not thrown by the default mock implementation, which throws UnsupportedOperationException instead. A test override can supply its own behavior.

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

SetWallpaper(Stream)

Caution

deprecated

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

[Android.Runtime.Register("setWallpaper", "(Ljava/io/InputStream;)V", "GetSetWallpaper_Ljava_io_InputStream_Handler")]
[System.Obsolete("deprecated")]
public override void SetWallpaper(System.IO.Stream? data);
[<Android.Runtime.Register("setWallpaper", "(Ljava/io/InputStream;)V", "GetSetWallpaper_Ljava_io_InputStream_Handler")>]
[<System.Obsolete("deprecated")>]
override this.SetWallpaper : System.IO.Stream -> unit

Parameters

data
Stream

The stream containing wallpaper data. Available to a test override; the default mock implementation does not use this argument.

Attributes

Exceptions

Not thrown by the default mock implementation, which throws UnsupportedOperationException instead. A test override can supply its own behavior.

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