Rachel
Toggle table of contents
3.5.0
android
common
desktop
ios
web
Target filter
android
common
desktop
ios
web
Switch theme
Search in API
Skip to content
Rachel
love.yinlin.startup.mmkv-kmp
/
love.yinlin.startup
/
StartupKV
Startup
KV
android
common
desktop
ios
web
@
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
)
@
StartupNative
@
NativeLibApi
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
Members
Members & Extensions
Constructors
Startup
KV
Link copied to clipboard
android
common
desktop
ios
web
constructor
(
)
expect
constructor
(
)
constructor
(
)
constructor
(
)
constructor
(
)
Properties
error
Scope
Link copied to clipboard
android
common
desktop
ios
web
val
errorScope
:
Nothing
val
errorScope
:
Nothing
val
errorScope
:
Nothing
val
errorScope
:
Nothing
val
errorScope
:
Nothing
kv
Link copied to clipboard
desktop
lateinit
var
kv
:
MMKV
mmkv
Link copied to clipboard
android
ios
lateinit
var
mmkv
:
MMKV
lateinit
var
mmkv
:
MMKV
Functions
contains
Link copied to clipboard
android
common
desktop
ios
web
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
destroy
Link copied to clipboard
android
common
desktop
ios
web
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
)
destroy
Before
Link copied to clipboard
android
common
desktop
ios
web
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
)
get
Link copied to clipboard
android
common
desktop
ios
web
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
get
Item
Link copied to clipboard
web
fun
getItem
(
key
:
String
)
:
String
?
get
Json
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
init
Link copied to clipboard
android
common
desktop
ios
web
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
)
init
Later
Link copied to clipboard
android
common
desktop
ios
web
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
remove
Link copied to clipboard
android
common
desktop
ios
web
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
)
set
Link copied to clipboard
android
common
desktop
ios
web
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
)
set
Json
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
)
to
String
Link copied to clipboard
android
common
desktop
ios
web
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