Stipop.configure
This method initializes the SDK from 'Stipop.json' file. As Stipop.json contains a unique key and customization details, it should always be called first. We recommend initializing this in the Application class.
Stipop.configure(context)
Parameter | Type | Description |
---|---|---|
context | context | It is used to read and set resources. |
sAuthDelegate | SAuthDelegate | If HttpExpcetion(UnAuthorized and so on) occurs, occurred HttpExpcetion will be received in here. *It is used for SAuth. |
callback | (Optional) ((isSuccess: Boolean) -> Unit) | When the configuration is finished, the success or failure of the operation is returned as a boolean. |
Application
Kotlin
1
2
3
4
5
6
7
8
9
10
11
12
13
14
class MyApplication : MultiDexApplication() {
override fun onCreate() {
super.onCreate()
Stipop.configure(
context = this,
SAuthDelegate = null,
callback = { isConfigured ->
when (isConfigured) {
true -> TODO()
false -> TODO()
}
})
}
}
Was this page helpful?
We’re here to help. Contact us.