in UWP apps i can use this code to set a StorageFile
as a device Wallpaper for both Desktop and Lockscreen:
public static async System.Threading.Tasks.Task ApplyWallpaper(StorageFile storageFile)
{
await UserProfilePersonalizationSettings.Current.TrySetWallpaperImageAsync(storageFile);
await UserProfilePersonalizationSettings.Current.TrySetLockScreenImageAsync(storageFile);
}
looking for Xamarin.Android I found the WallpaperManager but I dont really how to use it exactly.
static WallpaperManager myWallpaperManager;
public static void ApplyToDesktop(Bitmap bitmap)
{
myWallpaperManager.SetBitmap(bitmap);
}
can you tell me the equivalent of the UWP code for the Xamarin.Android?