MAUI SDK
Use Shenai.Maui to embed the native scan view in a .NET MAUI app targeting iOS or Android.
Install the SDK
Add the NuGet package to your app project.
dotnet add package Shenai.MauiNuGet also restores the platform binding for your target framework.
Show the scan
Register the view handler in MauiProgram.cs when you build your app.
MauiProgram.cs
using Shenai.Maui;
builder.UseShenai();Configure camera permissions for each target and initialize the SDK before opening the scan page. In that page’s XAML, add the native view.
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
xmlns:shenai="clr-namespace:Shenai.Maui;assembly=Shenai.Maui">
<shenai:ShenaiSdkView />
</ContentPage>Example apps
See Configuration to choose scan settings and Preparation for guidance before a scan.
For custom frame input, see Use your own camera pipeline.