init

suspend fun init(context: Context, token: String, link: String? = null, source: String? = null, secretKey: String? = null, keyId: String? = null, debug: Boolean? = false): Result<BaseResponse>

Initialize dependencies for the SDK

Return

Result containing the initialization response or an exception

Parameters

context

Application context

token

Your LinkRunner API token

link

Optional deeplink URL

source

Optional source parameter

secretKey

Optional secret key for SDK signature

keyId

Optional key ID for SDK signature

debug

Optional debug flag to enable debug mode