-
public final class StateMachineKt
-
-
Method Summary
Modifier and Type Method Description final static StateMachinerememberStateMachine(Artboard artboard, String stateMachineName)Creates a StateMachine from the given Artboard. final static Result<StateMachine>rememberStateMachineResult(Artboard artboard, String stateMachineName)Creates a StateMachine from artboard and exposes its creation state. -
-
Method Detail
-
rememberStateMachine
@Deprecated(message = Use rememberStateMachineResult. This implementation will be removed in 12.0, when rememberStateMachineResult will be renamed to rememberStateMachine and return a Result.)@Composable() final static StateMachine rememberStateMachine(Artboard artboard, String stateMachineName)
Creates a StateMachine from the given Artboard.
The lifetime of the state machine is managed by this composable. It will delete the state machine when it falls out of scope.
- Parameters:
artboard- The Artboard to instantiate the state machine from.stateMachineName- The name of the state machine to load.
-
rememberStateMachineResult
@Composable() final static Result<StateMachine> rememberStateMachineResult(Artboard artboard, String stateMachineName)
Creates a StateMachine from artboard and exposes its creation state.
The lifetime of a successfully created state machine is managed by this composable. It will delete the state machine when it falls out of scope.
This is the replacement for rememberStateMachine; its temporary name will become
rememberStateMachinein 12.0 when the unconfirmed API is removed.- Parameters:
artboard- The Artboard to instantiate the state machine from.stateMachineName- The name of the state machine to load.
-
-
-
-