Share via


WallpaperManager.IsSetWallpaperAllowed Property

Definition

Returns whether the calling package is allowed to set the wallpaper for the calling user.

public virtual bool IsSetWallpaperAllowed { [Android.Runtime.Register("isSetWallpaperAllowed", "()Z", "GetIsSetWallpaperAllowedHandler", ApiSince=24)] get; }
[<get: Android.Runtime.Register("isSetWallpaperAllowed", "()Z", "GetIsSetWallpaperAllowedHandler", ApiSince=24)>]
member this.IsSetWallpaperAllowed : bool

Property Value

Attributes

Remarks

Returns whether the calling package is allowed to set the wallpaper for the calling user. If this function returns false, any attempts to change the wallpaper will have no effect. Always returns true for device owner and profile owner.

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

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