draw
fun draw(artboardHandle: ArtboardHandle, stateMachineHandle: StateMachineHandle, surface: RiveSurface, fit: Fit, clearColor: Int = Color.TRANSPARENT)
Draw the artboard with the given state machine.
Parameters
artboard Handle
The handle of the artboard to draw.
state Machine Handle
The handle of the state machine to use for drawing.
surface
The surface to draw to.
fit
The fit mode of the artboard.
clear Color
The color to clear the surface with before drawing, in AARRGGBB format.
Throws
If the CommandQueue has been released or surface is closed.