Is there any Lock Screen WallPaper Manager class in android

后端 未结 1 786
慢半拍i
慢半拍i 2021-01-24 17:30

Like there is a WallpaperManager class in android. Is there is any class in android for getting Lock screen drawable ? So that i can set that Lock screen drawable as a backgrou

相关标签:
1条回答
  • As of API 24, WallpaperManager now has two new methods: getWallpaperFile and getWallpaperId. You can pass in WallpaperManager.FLAG_SYSTEM for the system wallpaper or WallpaperManager.FLAG_LOCK for lock screen wallpaper. But again, this is only supported in API 24.

    [EDIT]

    setBitmap can accept the new flags as well, so you can choose which wallpaper you'd like to set.

    0 讨论(0)
提交回复
热议问题