draw

fun draw(artboardHandle: ArtboardHandle, stateMachineHandle: StateMachineHandle, surface: RiveSurface, fit: Fit, clearColor: Int = Color.TRANSPARENT)

Draw the artboard with the given state machine.

Parameters

artboardHandle

The handle of the artboard to draw.

stateMachineHandle

The handle of the state machine to use for drawing.

surface

The surface to draw to.

fit

The fit mode of the artboard.

clearColor

The color to clear the surface with before drawing, in AARRGGBB format.

Throws

If the CommandQueue has been released or surface is closed.