Sanad SDK

Add the Sanad SDK to your Android app, iOS app or website.

The Sanad SDK runs inside your app or website. It opens a session with Lean, reads technical signals from the device in the background and sends them to Lean, so your backend can get the session's assessment. Your app only starts the SDK, asks it to collect again before sensitive actions, and passes the session id to your backend.

The SDK is available for three platforms:

PlatformPackageMinimum version
Androidme.leantech.device:lean-device-androidAndroid 8.0 (API level 26)
iOSSwift package LeanDeviceiOS 16
WebLoader script from sanad.leantech.meAny modern browser

All three work the same way: the same three calls (init, named initialize on iOS, then collect and diagnostics), the same session rules and the same error codes. Use one SDK key in all your builds, so Lean assesses your app and website sessions together.

You need an SDK key before you start: see Getting started.


Did this page help you?