Package 

Class StateMachine

  • 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.