kmp-settings
Toggle table of contents
common
Target filter
common
Switch theme
Search in API
Skip to content
kmp-settings
settings-core
/
io.github.mlmgames.settings.core.actions
/
ActionRegistry
Action
Registry
object
ActionRegistry
Members
Functions
clear
Link copied to clipboard
fun
clear
(
)
execute
Link copied to clipboard
suspend
fun
execute
(
actionClass
:
KClass
<
out
SettingAction
>
)
:
Boolean
get
Action
Link copied to clipboard
fun
getAction
(
actionClass
:
KClass
<
out
SettingAction
>
)
:
SettingAction
?
register
Link copied to clipboard
inline
fun
<
T
:
SettingAction
>
register
(
noinline
handler
:
suspend
(
)
->
Unit
)
fun
<
T
:
SettingAction
>
register
(
actionClass
:
KClass
<
T
>
,
handler
:
suspend
(
)
->
Unit
)
register
Action
Link copied to clipboard
inline
fun
<
T
:
SettingAction
>
registerAction
(
instance
:
T
)
fun
<
T
:
SettingAction
>
registerAction
(
actionClass
:
KClass
<
T
>
,
instance
:
T
)
Register an action instance for later retrieval. Call this at app startup for each action object.