Interactivity powered by state machines

Interactivity is currently in it’s early stages of developement and not production ready. Please be aware that this API will change. If your state machine is not working as expected please create an issue on Github.

Creation

Learn how to create dotLotties with state machines here.

Usage

The DotLottieAnimation instance expose the following methods that can be used to control the animation:

MethodDescription
loadStateMachine(stateMachineId: String)Loads the state machine configuration contained inside the .lottie using its ID as specified in the manifest.json file of the .lottie file.
startStateMachine()Starts the state machine.
stopStateMachine()Stops the state machine. Any events sent will now be ignored.
postEvent(event: Event)Send an event to the state machine.