State Machine
An instantiated state machine from an Artboard.
Can be used to create a Rive composable and to manually advance the state machine.
Create an instance of this class using rememberStateMachine or StateMachine.fromArtboard. When using the latter, make sure to call close when you are done with the state machine to release its resources.
Parameters
state Machine Handle
The handle to the state machine on the command server.
rive Worker
The Rive worker that owns the state machine.
artboard Handle
The artboard handle that owns the state machine.
name
The name of the state machine, or null if it's the default state machine.