setColor

fun setColor(propertyPath: String, @ColorInt value: Int)

Sets a color property on this view model instance. Colors are represented as AARRGGBB integers.

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

value

The integer value of the color to set the property to.