Skip to Content

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.1

Replace 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);

CustomFrames in MAUI only configures the session. The MAUI binding does not provide a raw frame-submission API, so frames must be submitted from native Android/iOS code through the native SDK APIs shown on the Android and iOS pages.

Further steps

Please see permissions, initialization, configuration and video measurement for further steps.