Skip to Content

MAUI SDK

Use the Shen.AI (CE) .NET MAUI SDK to integrate the locked Shen.AI (CE) measurement flow into Android/iOS MAUI applications.

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>

Shen.AI (CE) flow

During the preview phase, initialize the SDK with your standard Shen.AI SDK API key or short-lived token and embed ShenaiSdkView as described in Initialization.

Use initializationMode for the measurement flow. Product customization settings remain locked by Shen.AI (CE).

Further steps

See Initialization, Configuration, and Measurement preparation for the supported Shen.AI (CE) flow.