using Avalonia.Controls; using Microsoft.Maui.ApplicationModel; using Microsoft.Maui.Storage; using InABox.Avalonia.Platform; namespace InABox.Avalonia { public class MobileDocumentCameraSource : MobileImageSource { public MobileDocumentCameraSource(MobileDocumentCameraOptions options) : base(options) { } protected override async Task IsEnabled() => await IsEnabled(); protected override async Task Capture(TopLevel window) => await PlatformTools.ImageTools.CapturePhotoAsync(window, Options.Compression, Options.Constraints); } }