This plugin has some API changes between v1.X.X to v2.X.X. These changes are necessary to support .NET MAUI.
SaveMediaPermission
has been moved to new nuget packages Xamarin.MediaGallery.Permision
and Xamarin.MediaGallery.Permision.Maui
.
And it is based on Xamarin.Essentials.Permissions.BasePlatformPermission
for Xamarin and Microsoft.Maui.ApplicationModel.BasePlatformPermission
for .net6(MAUI)
PresentationSourceBounds
property type has been changed to object
.
Older:
public System.Drawing.Rectangle PresentationSourceBounds { get; set; }
New:
public object PresentationSourceBounds { get; set; }
PresentationSourceBounds
will be converted to System.Drawing.Rectangle
for Xamarin and to Microsoft.Maui.Graphics.Rect
for .net6(MAUI).If the value is null or does not compatible specified types, it will be used as System.Drawing.Rectangle.Empty
or Microsoft.Maui.Graphics.Rectangle.Zero
.