-
public class StateMachine.Companion
-
-
Field Summary
Fields Modifier and Type Field Description public final static StateMachine.CompanionINSTANCE
-
Method Summary
Modifier and Type Method Description final StateMachinefromArtboard(Artboard artboard, String stateMachineName)Creates a new StateMachine from an Artboard. -
-
Method Detail
-
fromArtboard
final StateMachine fromArtboard(Artboard artboard, String stateMachineName)
Creates a new StateMachine from an Artboard.
⚠️ The lifetime of the returned state machine is managed by the caller. Make sure to call close when you are done with it to release its resources.
- Parameters:
artboard- The Artboard to instantiate the state machine from.stateMachineName- The name of the state machine to load.
-
-
-
-