StartupKV

@StartupFetcher(index = 0, name = "initPath", returnType = Path::class)
actual class StartupKV : SyncStartup
@StartupFetcher(index = 0, name = "initPath", returnType = Path::class)
expect class StartupKV : SyncStartup
@StartupFetcher(index = 0, name = "initPath", returnType = Path::class)
actual class StartupKV : SyncStartup
@StartupFetcher(index = 0, name = "initPath", returnType = Path::class)
actual class StartupKV : SyncStartup
@StartupFetcher(index = 0, name = "initPath", returnType = Path::class)
actual class StartupKV : SyncStartup

Constructors

Link copied to clipboard
constructor()
expect constructor()
constructor()
constructor()
constructor()

Properties

Link copied to clipboard
Link copied to clipboard
lateinit var kv: MMKV
Link copied to clipboard
lateinit var mmkv: MMKV
lateinit var mmkv: MMKV

Functions

Link copied to clipboard
actual operator fun contains(key: String): Boolean
expect operator fun contains(key: String): Boolean
actual operator fun contains(key: String): Boolean
actual operator fun contains(key: String): Boolean
actual operator fun contains(key: String): Boolean
Link copied to clipboard
open fun destroy(context: Context, args: StartupArgs)
open fun destroy(context: Context, args: StartupArgs)
open fun destroy(context: Context, args: StartupArgs)
open fun destroy(context: Context, args: StartupArgs)
open fun destroy(context: Context, args: StartupArgs)
Link copied to clipboard
open fun destroyBefore(context: Context, args: StartupArgs)
open fun destroyBefore(context: Context, args: StartupArgs)
open fun destroyBefore(context: Context, args: StartupArgs)
open fun destroyBefore(context: Context, args: StartupArgs)
open fun destroyBefore(context: Context, args: StartupArgs)
Link copied to clipboard
actual inline fun <T : Any> get(key: String, default: T): T
expect inline fun <T : Any> get(key: String, default: T): T
actual inline fun <T : Any> get(key: String, default: T): T
actual inline fun <T : Any> get(key: String, default: T): T
actual inline fun <T : Any> get(key: String, default: T): T
Link copied to clipboard
fun getItem(key: String): String?
Link copied to clipboard
inline fun <T> StartupKV.getJson(key: String, defaultFactory: () -> T): T
inline fun <T> StartupKV.getJson(deserializer: DeserializationStrategy<T>, key: String, defaultFactory: () -> T): T
Link copied to clipboard
suspend override fun init(scope: CoroutineScope, context: Context, args: StartupArgs): Nothing
actual open override fun init(context: Context, args: StartupArgs)
suspend override fun init(scope: CoroutineScope, context: Context, args: StartupArgs): Nothing
expect open override fun init(context: Context, args: StartupArgs)
suspend override fun init(scope: CoroutineScope, context: Context, args: StartupArgs): Nothing
actual open override fun init(context: Context, args: StartupArgs)
suspend override fun init(scope: CoroutineScope, context: Context, args: StartupArgs): Nothing
actual open override fun init(context: Context, args: StartupArgs)
suspend override fun init(scope: CoroutineScope, context: Context, args: StartupArgs): Nothing
actual open override fun init(context: Context, args: StartupArgs)
Link copied to clipboard
open override fun initLater(context: Context, args: StartupArgs)
suspend override fun initLater(scope: CoroutineScope, context: Context, args: StartupArgs): Nothing
open override fun initLater(context: Context, args: StartupArgs)
suspend override fun initLater(scope: CoroutineScope, context: Context, args: StartupArgs): Nothing
open override fun initLater(context: Context, args: StartupArgs)
suspend override fun initLater(scope: CoroutineScope, context: Context, args: StartupArgs): Nothing
open override fun initLater(context: Context, args: StartupArgs)
suspend override fun initLater(scope: CoroutineScope, context: Context, args: StartupArgs): Nothing
open override fun initLater(context: Context, args: StartupArgs)
suspend override fun initLater(scope: CoroutineScope, context: Context, args: StartupArgs): Nothing
Link copied to clipboard
actual fun remove(key: String)
expect fun remove(key: String)
actual fun remove(key: String)
actual fun remove(key: String)
actual fun remove(key: String)
Link copied to clipboard
actual fun set(key: String, value: Boolean, expire: Int)
actual fun set(key: String, value: ByteArray, expire: Int)
actual fun set(key: String, value: Double, expire: Int)
actual fun set(key: String, value: Float, expire: Int)
actual fun set(key: String, value: Int, expire: Int)
actual fun set(key: String, value: Long, expire: Int)
actual fun set(key: String, value: String, expire: Int)
expect fun set(key: String, value: Boolean, expire: Int = KVExpire.NEVER)
expect fun set(key: String, value: ByteArray, expire: Int = KVExpire.NEVER)
expect fun set(key: String, value: Double, expire: Int = KVExpire.NEVER)
expect fun set(key: String, value: Float, expire: Int = KVExpire.NEVER)
expect fun set(key: String, value: Int, expire: Int = KVExpire.NEVER)
expect fun set(key: String, value: Long, expire: Int = KVExpire.NEVER)
expect fun set(key: String, value: String, expire: Int = KVExpire.NEVER)
actual fun set(key: String, value: Boolean, expire: Int)
actual fun set(key: String, value: ByteArray, expire: Int)
actual fun set(key: String, value: Double, expire: Int)
actual fun set(key: String, value: Float, expire: Int)
actual fun set(key: String, value: Int, expire: Int)
actual fun set(key: String, value: Long, expire: Int)
actual fun set(key: String, value: String, expire: Int)
actual fun set(key: String, value: Boolean, expire: Int)
actual fun set(key: String, value: ByteArray, expire: Int)
actual fun set(key: String, value: Double, expire: Int)
actual fun set(key: String, value: Float, expire: Int)
actual fun set(key: String, value: Int, expire: Int)
actual fun set(key: String, value: Long, expire: Int)
actual fun set(key: String, value: String, expire: Int)
actual fun set(key: String, value: Boolean, expire: Int)
actual fun set(key: String, value: ByteArray, expire: Int)
actual fun set(key: String, value: Double, expire: Int)
actual fun set(key: String, value: Float, expire: Int)
actual fun set(key: String, value: Int, expire: Int)
actual fun set(key: String, value: Long, expire: Int)
actual fun set(key: String, value: String, expire: Int)
Link copied to clipboard
inline fun <T> StartupKV.setJson(key: String, value: T, expire: Int = KVExpire.NEVER)
fun <T> StartupKV.setJson(serializer: SerializationStrategy<T>, key: String, value: T, expire: Int = KVExpire.NEVER)
Link copied to clipboard
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String
open override fun toString(): String