-
- All Implemented Interfaces:
-
java.lang.AutoCloseable
public final class StateMachine implements AutoCloseable
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.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classStateMachine.Companion
-
Field Summary
Fields Modifier and Type Field Description private final StateMachineHandlestateMachineHandleprivate final Stringname
-
Method Summary
Modifier and Type Method Description final StateMachineHandlegetStateMachineHandle()final StringgetName()final Unitadvance(Duration deltaTime)Advance the state machine by the given delta time in nanoseconds. -
-
Method Detail
-
getStateMachineHandle
final StateMachineHandle getStateMachineHandle()
-
-
-
-