Stipop Docs | Documentation for SDK and API

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)

ParameterTypeDescription
contextcontextIt is used to read and set resources.
sAuthDelegateSAuthDelegateIf 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
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()
            }
        })
    }
}
We’re here to help. Contact us.