WallpaperManager.WallpaperInfo Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the information about the home screen wallpaper if its current wallpaper is a live wallpaper component.
public virtual Android.App.WallpaperInfo? WallpaperInfo { [Android.Runtime.Register("getWallpaperInfo", "()Landroid/app/WallpaperInfo;", "GetGetWallpaperInfoHandler")] get; }
public virtual Android.App.WallpaperInfo? WallpaperInfo { [Android.Runtime.Register("getWallpaperInfo", "()Landroid/app/WallpaperInfo;", "GetGetWallpaperInfoHandler")] [Android.Runtime.RequiresPermission("QUERY_ALL_PACKAGES")] get; }
[<get: Android.Runtime.Register("getWallpaperInfo", "()Landroid/app/WallpaperInfo;", "GetGetWallpaperInfoHandler")>]
member this.WallpaperInfo : Android.App.WallpaperInfo
[<get: Android.Runtime.Register("getWallpaperInfo", "()Landroid/app/WallpaperInfo;", "GetGetWallpaperInfoHandler")>]
[<get: Android.Runtime.RequiresPermission("QUERY_ALL_PACKAGES")>]
member this.WallpaperInfo : Android.App.WallpaperInfo
Property Value
- Attributes
Remarks
Returns the information about the home screen wallpaper if its current wallpaper is a live wallpaper component. Otherwise, if the wallpaper is a static image or is not set, or if the caller doesn't have the appropriate permissions, this returns null
.
For devices running Android 13 or earlier, this method requires the android.Manifest.permission#QUERY_ALL_PACKAGES
permission.
For devices running Android 14 or later, in order to use this, apps should declare a <queries>
tag with the action "android.service.wallpaper.WallpaperService"
. Otherwise, this method will return null
if the caller doesn't otherwise have visibility of the wallpaper package.
Java documentation for android.app.WallpaperManager.getWallpaperInfo()
.
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.