Companion

object Companion

Properties

Link copied to clipboard

Functions

Link copied to clipboard
actual fun MMKV.Companion.defaultMMKV(mode: MMKVMode, cryptKey: String?): MMKV
expect fun MMKV.Companion.defaultMMKV(mode: MMKVMode = MMKVMode.SINGLE_PROCESS, cryptKey: String? = null): MMKV

Get the default MMKV instance

actual fun MMKV.Companion.defaultMMKV(mode: MMKVMode, cryptKey: String?): MMKV
Link copied to clipboard
actual fun MMKV.Companion.initialize(path: String, options: MMKVOptions)
fun MMKV.Companion.initialize(path: String, conf: MMKVOptions.() -> Unit = {})
expect fun MMKV.Companion.initialize(path: String, options: MMKVOptions)

Initialize MMKV

actual fun MMKV.Companion.initialize(path: String, options: MMKVOptions)
Link copied to clipboard
actual fun MMKV.Companion.mmkvWithID(id: String, mode: MMKVMode, cryptKey: String?): MMKV
expect fun MMKV.Companion.mmkvWithID(id: String, mode: MMKVMode = MMKVMode.SINGLE_PROCESS, cryptKey: String? = null): MMKV

Get an MMKV instance by ID

actual fun MMKV.Companion.mmkvWithID(id: String, mode: MMKVMode, cryptKey: String?): MMKV