Added APIs
- Introduced
getWallpaper method to retrieve device wallpaper.
Future<Uint8List?> getWallpaper(WallpaperLocation wallpaperLocation)
Refactored APIs
- Updated
setWallpaperFromFile method to accept optional crop bounds.
Future<bool> setWallpaperFromFile(String filePath, WallpaperLocation wallpaperLocation, {Rect? cropBounds})
- Updated
setWallpaperFromAsset method to accept optional crop bounds.
Future<bool> setWallpaperFromAsset(String filePath, WallpaperLocation wallpaperLocation, {Rect? cropBounds})
Deprecated APIs
- Removed
setWallpaperFromFileWithCrop. Now setWallpaperFromFile is used.
- Removed
setWallpaperFromAssetWithCrop. Now setWallpaperFromAsset is used.