Package-level declarations

Types

Link copied to clipboard
data class DispatcherProvider(val Main: CoroutineDispatcher = Dispatchers.Main, val IO: CoroutineDispatcher = Dispatchers.IO, val Default: CoroutineDispatcher = Dispatchers.Default)

Convenience class to choose the type Coroutine context

Link copied to clipboard
data class MimiConfiguration(val allowRemoteDeviceAuthorization: Boolean = false, val allowAnonymousUserOnly: Boolean = false, val mimiProfilePersonalizationConfiguration: MimiProfilePersonalizationConfiguration = MimiProfilePersonalizationConfiguration(), val mimiProfileOnboardingConfiguration: MimiProfileOnboardingConfiguration = MimiProfileOnboardingConfiguration())

Object which can be used to configure and customize various Mimi features and functionality.

Link copied to clipboard

MimiCore instance provides the global access point to use MimiCoreServices.

Link copied to clipboard

Raised on any errors that occur within the core module.

Link copied to clipboard

Definition of the MimiCore main public API; providing access to key functionality such as authentication, personalization and test management. It handles all aspects of communication with the Mimi API, providing a robust framework that can be used to integrate an app into the Mimi eco-system.

Link copied to clipboard
interface MimiEvents

Interface containing callback methods regarding internal events triggered by the mSDK

Link copied to clipboard
data class MimiProfileOnboardingConfiguration(val showProfileOnboardingIntroduction: Boolean = true)

Used to define the configuration of the Mimi Profile onboarding functionality.

Link copied to clipboard
data class MimiProfilePersonalizationConfiguration(val showSampleSoundPlayerInProfile: Boolean = true, val uiControlDebounceBehavior: UiControlDebounceBehavior = None)

Used to define the configuration of the Mimi Profile personalization functionality.

Link copied to clipboard
data class OAuth2Error(val error: String, val error_description: String)

Wrapper for OAuth2 compliant errors

Link copied to clipboard
data class ServerError(val statusCode: Int, val error: String?, val message: String)

Wrapper class for errors returned by the backend.

Link copied to clipboard

Used to define the debounce behavior of the UI controls in the Mimi Profile. It can be either None or Debounce. Where None means no debouncing applied, and Debounce means debouncing with a given interval represented by a Duration.

Properties

Link copied to clipboard
const val EMAIL_ALREADY_IN_USE: Int = 422

Server code for email already in use error.

Link copied to clipboard
val moshi: Moshi

Functions

Link copied to clipboard
fun DeviceAuthorizationRequest.createQrCode(width: Int, height: Int, contrastLow: Int? = null, contrastHigh: Int? = null): Bitmap
Link copied to clipboard
fun doNothing()
Link copied to clipboard
fun CoroutineScope.launchHandled(block: suspend CoroutineScope.() -> Unit): Job

A launch Coroutine Builder that handles MimiCoreException