共用方式為


Context.SetWallpaper Method

Definition

Overloads

SetWallpaper(Bitmap)
Obsolete.

This member is deprecated.

SetWallpaper(Stream)
Obsolete.

This member is deprecated.

SetWallpaper(Bitmap)

Caution

deprecated

This member is deprecated.

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

Parameters

bitmap
Bitmap
Attributes

Exceptions

Remarks

This member is deprecated. Use android.app.WallpaperManager#setBitmap(Bitmap) WallpaperManager.set() instead. <p>This method requires the caller to hold the permission android.Manifest.permission#SET_WALLPAPER.

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

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

This member is deprecated.

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

Parameters

data
Stream
Attributes

Exceptions

Remarks

This member is deprecated. Use android.app.WallpaperManager#setStream(InputStream) WallpaperManager.set() instead. <p>This method requires the caller to hold the permission android.Manifest.permission#SET_WALLPAPER.

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

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