toggle menu
kfsm
1.9.0-RC1
common
switch theme
search in API
kfsm
/
io.jumpco.open.kfsm
/
DslStateMachineHandler
/
whenState
when
State
fun
whenState
(
currentState
:
S
,
handler
:
DslStateMapEventHandler
<
S
,
E
,
C
,
A
,
R
>
.
(
)
->
Unit
)
:
DslStateMapEventHandler
<
S
,
E
,
C
,
A
,
R
>
Defines a section for a specific state.
Parameters
current
State
The give state
handler
A lambda with definitions for the given state