using System.Threading.Tasks; using Xamarin.Essentials; namespace InABox.Mobile { public class MobileDocumentPhotoLibrarySource : MobileImageSource { public MobileDocumentPhotoLibrarySource(MobileDocumentPhotoLibraryOptions options) : base(options) { } protected override async Task IsEnabled() => await IsEnabled(); protected override async Task Capture() => await MobileUtils.ImageTools.PickPhotoAsync(Options.Compression, Options.Constraints); } }