MAUI SDK
Using our .NET MAUI SDK makes it easy to integrate Shen.AI into cross-platform applications targeting Android and iOS.
The best way to get started is to build the example app - available here on GitHub .
Installing the SDK
The MAUI SDK is published to NuGet as Shenai.Maui.
dotnet add package Shenai.Maui --version 3.1.1Replace 3.1.1 with the SDK version you want to ship. The facade package restores the platform binding package needed
for the target framework you build.
Register the SDK handler in your MAUI app builder:
MauiProgram.cs
using Shenai.Maui;
builder.UseShenai();Custom frame input
MAUI exposes CameraMode.CUSTOM_FRAMES, so you can configure the SDK not to start a camera:
var settings = new InitializationSettings
{
CameraMode = CameraMode.CUSTOM_FRAMES
};
await ShenaiSdk.InitializeAsync(API_KEY, USER_ID, settings);Further steps
Please see permissions, initialization, configuration and video measurement for further steps.