Bonoscan.Native.Maui.Abstractions 0.31.0

Bonoscan.Native.Maui.Abstractions

Shared contract for the Bonoscan native MAUI document scanner. This package is platform-neutral (net10.0, no MAUI workload) and carries no scanner implementation — just the abstraction both platform packages implement:

  • IDocumentScannerIsSupported, PlatformName, SupportedOptions, ScanAsync(...).
  • DocumentScanOptions / DocumentScanResult — the input knobs and the result (page ImagePaths, optional PdfPath, PageCount, plus Cancel() / Fail() factories).
  • ScanOption / ScannerMode / ScanResultFormat enums.
  • UnsupportedDocumentScanner — fallback IDocumentScanner for heads with no native scanner.

All types are in the Bonoscan.Native.Maui namespace.

How to use it

Reference the platform package for each build head — it brings this abstractions package transitively and registers the native implementation:

  • Android → Bonoscan.Native.Maui.Android (Google ML Kit)
  • iOS → Bonoscan.Native.Maui.iOS (VisionKit)

In a single multi-target MAUI app, reference each per TFM:

<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'android'">
  <PackageReference Include="Bonoscan.Native.Maui.Android" Version="..." />
</ItemGroup>
<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
  <PackageReference Include="Bonoscan.Native.Maui.iOS" Version="..." />
</ItemGroup>

Your code depends only on IDocumentScanner from this package, so it's identical across heads. See the platform packages' READMEs for DI registration, the required permissions (Android AndroidManifest.xmlCAMERA + INTERNET; iOS Info.plistNSCameraUsageDescription), and the (Android) MainActivity wiring step.

Showing the top 20 packages that depend on Bonoscan.Native.Maui.Abstractions.

Packages Downloads
Bonoscan.Native.Maui.Android
Android native document scanner for .NET MAUI: a thin wrapper over Google ML Kit (GmsDocumentScanning) behind the IDocumentScanner abstraction. Launches the OS scanner (edge detection, auto-capture, filters, multi-page) and returns page JPEGs / optional PDF. Register with AddBonoscanNativeScanner().
2

.NET 10.0

  • No dependencies.

Version Downloads Last updated
0.31.0 2 06/04/2026