SDK

This page provides information how to integrate native Android or iOS SDK into your mobile app.

Android

Step 1

Add this line to build.gradle (app level)

dependencies {
// .. Your other dependencies
implementation("io.enabl3.android.enabl3androidsdk:Enabl3AndroidSDK:1.0.20")
}

Step 2

Init Enabl3 in your Application class or Activity class (with application context)

Enabl3.init(applicationContext, "insert_user_token_here")

To get user_token your backend need to call GET JWT endpoint and send it into your app.

Step 3

To open Enabl3 you should call

Enabl3.open(context, StartAnimation.SlideFromLeft)

You can call this code from button onClickListener etc. Pass context and animation type if you need smooth opening. Available animation types:

sealed class StartAnimation {
    data object SlideFromLeft : StartAnimation()
    data object SlideFromRight : StartAnimation()
    data object SlideFromTop : StartAnimation()
    data object SlideFromBottom : StartAnimation()
    data object None : StartAnimation()
}

iOs

Documentation coming soon

Last updated