setArtboard

fun setArtboard(propertyPath: String, artboard: Artboard?)

Assigns the given artboard to the bindable artboard property on this view model instance, or clears the property if artboard is null.

ℹ️ Changes to bound Rive elements will not be reflected until the next state machine advance.

Parameters

propertyPath

The path to the property from this view model instance. Slash delimited to refer to nested properties.

artboard

The artboard to assign to the property, or null to clear the property.