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.enable3.android.enable3androidsdk:Enable3AndroidSDK:1.0.50")
}
Step 2
Init Enable3 in your Application class or Activity class (with application context)
Enable3.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 Enable3 you should call
Enable3.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