launchAsync

public abstract AsyncCompletableOperation launchAsync(Application application, SDKConfiguration sdkConfiguration)

Function that Initializes the SDK asynchronously, without blocking the calling thread. Performs the same work as launch, dispatched to a background thread.

Return

an AsyncCompletableOperation which can either be suspended on with await() from a coroutine, or observed with addCallback(callback). Every exception documented on launch can occur here as well, delivered via the thrown exception of await() or via CompletionCallback.onError instead of being thrown synchronously.

Parameters

application

the instance of your android Application class.

sdkConfiguration

the SDKConfiguration instance.

See also