Package 

Class StateMachineInstance

  • All Implemented Interfaces:
    app.rive.runtime.kotlin.core.PlayableInstance , app.rive.runtime.kotlin.core.RefCount

    
    public final class StateMachineInstance
    extends NativeObject implements PlayableInstance
                        

    The StateMachineInstance is a helper to wrap common operations to play a state machine.

    This object has a counterpart in C++, which implements a lot of functionality. The unsafeCppPointer keeps track of this relationship.

    Use this to keep track of a state machine's current state and progress, and to help apply changes that the state machine makes to components in an Artboard.