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 download and build the example app - available here on GitHub.

Installing the SDK

See the Customer Portal for SDK downloads.

  1. Copy the Shenai.Maui.SDK directory into your MAUI solution.
  2. Add a reference to the Shenai.Maui project in your app’s .csproj:
YourProject.csproj
<ItemGroup>
  <ProjectReference Include="Shenai.Maui.SDK/src/Shenai.Maui/Shenai.Maui.csproj" />
</ItemGroup>

For iOS builds ensure the native framework is linked:

<ItemGroup Condition="'$(TargetFramework)'=='net9.0-ios'">
  <NativeReference Include="Shenai.Maui.SDK/src/Shenai.iOS.Binding/native/ShenaiSDK.framework">
    <Kind>Framework</Kind>
    <ForceLoad>true</ForceLoad>
    <SmartLink>true</SmartLink>
  </NativeReference>
</ItemGroup>

Further steps

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

;