setImage

fun setImage(propertyPath: String, image: ImageAsset)

Assigns the given image to the image property on this view model instance.

ℹ️ 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.

image

The image to assign to the property.