Rachel
Toggle table of contents
3.5.0
common
Target filter
common
Switch theme
Search in API
Skip to content
Rachel
love.yinlin.compose.startup.config
/
love.yinlin.startup
/
StartupConfig
Startup
Config
@
StartupFetcher
(
index
=
0
,
name
=
"kv"
,
returnType
=
StartupKV::class
)
@
StartupArg
(
index
=
1
,
name
=
"version"
,
type
=
Int::class
)
@
StartupArg
(
index
=
2
,
name
=
"patches"
,
type
=
List::class
)
@
Stable
open
class
StartupConfig
:
SyncStartup
Members
Constructors
Startup
Config
Link copied to clipboard
constructor
(
)
Properties
error
Scope
Link copied to clipboard
val
errorScope
:
Nothing
kv
Link copied to clipboard
lateinit
var
kv
:
StartupKV
patches
Link copied to clipboard
lateinit
var
patches
:
Patches
version
Link copied to clipboard
var
version
:
Int
Functions
boolean
State
Link copied to clipboard
fun
booleanState
(
default
:
Boolean
,
version
:
String
?
=
null
)
:
ValueState
<
Boolean
>
cache
State
Link copied to clipboard
fun
cacheState
(
)
:
CacheState
destroy
Link copied to clipboard
open
fun
destroy
(
context
:
Context
,
args
:
StartupArgs
)
destroy
Before
Link copied to clipboard
open
fun
destroyBefore
(
context
:
Context
,
args
:
StartupArgs
)
double
State
Link copied to clipboard
fun
doubleState
(
default
:
Double
,
version
:
String
?
=
null
)
:
ValueState
<
Double
>
enum
State
Link copied to clipboard
inline
fun
<
T
:
Enum
<
T
>
>
enumState
(
default
:
T
,
version
:
String
?
=
null
)
:
ValueState
<
T
>
float
State
Link copied to clipboard
fun
floatState
(
default
:
Float
,
version
:
String
?
=
null
)
:
ValueState
<
Float
>
init
Link copied to clipboard
suspend override
fun
init
(
scope
:
CoroutineScope
,
context
:
Context
,
args
:
StartupArgs
)
:
Nothing
open
override
fun
init
(
context
:
Context
,
args
:
StartupArgs
)
init
Later
Link copied to clipboard
open
override
fun
initLater
(
context
:
Context
,
args
:
StartupArgs
)
suspend override
fun
initLater
(
scope
:
CoroutineScope
,
context
:
Context
,
args
:
StartupArgs
)
:
Nothing
int
State
Link copied to clipboard
fun
intState
(
default
:
Int
,
version
:
String
?
=
null
)
:
ValueState
<
Int
>
json
State
Link copied to clipboard
inline
fun
<
T
>
jsonState
(
version
:
String
?
=
null
,
crossinline
defaultFactory
:
(
)
->
T
)
:
ValueState
<
T
>
list
State
Link copied to clipboard
inline
fun
<
T
>
listState
(
version
:
String
?
=
null
,
noinline
defaultFactory
:
(
)
->
List
<
T
>
=
{ emptyList() }
)
:
ReadOnlyProperty
<
Any
?
,
ListState
<
T
>
>
long
State
Link copied to clipboard
fun
longState
(
default
:
Long
,
version
:
String
?
=
null
)
:
ValueState
<
Long
>
map
State
Link copied to clipboard
inline
fun
<
K
,
V
>
mapState
(
version
:
String
?
=
null
,
noinline
defaultFactory
:
(
)
->
Map
<
K
,
V
>
=
{ emptyMap() }
)
:
ReadOnlyProperty
<
Any
?
,
MapState
<
K
,
V
>
>
string
State
Link copied to clipboard
fun
stringState
(
default
:
String
,
version
:
String
?
=
null
)
:
ValueState
<
String
>
to
String
Link copied to clipboard
open
override
fun
toString
(
)
:
String