Companion

object Companion

Properties

Link copied to clipboard

The current SDK configuration.

Link copied to clipboard
val sessionChangedFlow: SharedFlow<SessionId>

A shared flow that emits the session ID whenever it changes.

Link copied to clipboard

The current UserSession for this device, if there is one.

Functions

Link copied to clipboard

Add a listener that will be notified when the session changes.

Link copied to clipboard
fun configureSdk(applicationContext: Context, host: String, appKey: String, integrationId: IntegrationId, jwtProvider: JwtProvider, configMap: SdkConfigMap? = null): AxpSdkConfig

Configure the SDK for interacting with AXP.

Link copied to clipboard

Get the default conversation.

Get the default conversation using a callback mechanism.

Link copied to clipboard

Remove a previously added session change listener.

Link copied to clipboard
suspend fun shutDown(): AxpResult<Unit>

Terminate the current user session.

fun shutDown(responseHandler: ResponseHandler<Unit>)

Terminate the current user session using a callback mechanism.