Udostępnij za pośrednictwem


WallpaperManager.ClearWallpaper Method

Definition

Reset all wallpaper to the factory default.

[Android.Runtime.Register("clearWallpaper", "()V", "GetClearWallpaperHandler", ApiSince=28)]
[Android.Runtime.RequiresPermission("android.permission.SET_WALLPAPER")]
public virtual void ClearWallpaper ();
[<Android.Runtime.Register("clearWallpaper", "()V", "GetClearWallpaperHandler", ApiSince=28)>]
[<Android.Runtime.RequiresPermission("android.permission.SET_WALLPAPER")>]
abstract member ClearWallpaper : unit -> unit
override this.ClearWallpaper : unit -> unit
Attributes

Remarks

Reset all wallpaper to the factory default.

This method requires the caller to hold the permission android.Manifest.permission#SET_WALLPAPER.

Java documentation for android.app.WallpaperManager.clearWallpaper().

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