init

suspend fun init(context: Context, apiKey: String, basicInfo: BasicInfo, identityId: String? = null, password: String? = null): Boolean

The first time you use the QA SDK in the code you should initialize it, this allows the SDK to create a unique identifier and initiate server transactions and workflows. Most of the functionality will not work if you have never initialized the singleton before. The function is synchronous and return a flow with the status of the registration of the device to the server. NOTE: do not use this function without collecting the flow otherwise the function will not be called at all.

Return

whether or not is the first time init is called.

Parameters

context

Android application context

apiKey

Authorization code which is provided by QA (api key).