Language

ContextWrapper.SetWallpaper Method

Definition

Overloads

Name Description
SetWallpaper(Bitmap)
Obsolete.

Passes the bitmap to the base context's legacy wallpaper setter.

SetWallpaper(Stream)
Obsolete.

Passes the input stream to the base context's legacy wallpaper setter.

SetWallpaper(Bitmap)

Caution

deprecated

Passes the bitmap to the base context's legacy wallpaper setter.

[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 to use as the wallpaper.

Attributes

Exceptions

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.

Java documentation for android.content.ContextWrapper.setWallpaper(android.graphics.Bitmap).

Applies to

SetWallpaper(Stream)

Caution

deprecated

Passes the input stream to the base context's legacy wallpaper setter.

[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 result data to set.

Attributes

Exceptions

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.

Java documentation for android.content.ContextWrapper.setWallpaper(java.io.InputStream).

Applies to