Skip to Content

iOS SDK

Use the Shen.AI (CE) iOS SDK to integrate the locked Shen.AI (CE) measurement flow into an iOS app.

The iOS integration uses the Objective-C API of the SDK, so it can be used directly in Swift and Objective-C projects.

Installing the SDK package

The SDK is packaged as an iOS Framework. Download the SDK package, extract it in your iOS codebase, and add the framework to your Xcode project.

See the Customer Portal for SDK downloads.

Make sure to select “Copy items if needed” when adding the framework.

Initialization and view

During the preview phase, initialize the SDK with your standard Shen.AI SDK API key or short-lived token, then display the SDK view in your app.

import ShenaiSDK let initResult = ShenaiSDK.initialize(API_KEY, userID: USER_ID, settings: nil)

Shen.AI (CE) supports the standard measurement flow only. See Initialization for examples.

Further steps

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