Package io.mimi.sdk.core

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 mimiPersonalizationConfiguration: MimiPersonalizationConfiguration = MimiPersonalizationConfiguration(),     val mimiOnboardingConfiguration: MimiOnboardingConfiguration = MimiOnboardingConfiguration())

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

Link copied to clipboard
object MimiCore : MimiCoreServices

MimiCore instance provides the global access point to use MimiCoreServices.

Link copied to clipboard
sealed class MimiCoreException : Exception

Raised on any errors that occur within the core module.

Link copied to clipboard
interface MimiCoreServices

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 MimiOnboardingConfiguration(val showProfileOnboardingIntroduction: Boolean = true)

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

Link copied to clipboard
data class MimiPersonalizationConfiguration(val showSampleSoundPlayerInProfile: Boolean = true)

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.

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 () -> Unit): Job

A launch Coroutine Builder that handles MimiCoreException

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