Using Kotlin extensions

The SDK is based on RxJava 2. If your app is based on Kotlin Coroutines / Flow, wrapper for APIs that provide the functionality using suspending functions and Flows are available as:

In each case, build the SDK as stated above with the respective builder, and use the extension function .asFlowApi() that will return a respective coroutine / flow instance.

You can add these libraries to your build.gradle like

dependencies {
    implementation "com.swarovskioptik.comm::FlowSOCommMediaClientWrapper:[CURRENT_LIBRARY_VERSION]"
    implementation "com.swarovskioptik.comm::FlowSOCommOutsideAPIWrapper:[CURRENT_LIBRARY_VERSION]"
    [...]
}

Replace the term [CURRENT_LIBRARY_VERSION] with the current library version. See for Releases of the SOComm SDK for details.