Package 

Class ViewModelInstance

  • All Implemented Interfaces:
    app.rive.runtime.kotlin.core.RefCount

    
    public final class ViewModelInstance
    extends NativeObject
                        

    Represents an instantiated set of properties on a ViewModel. With this class you have access to the individual properties to get and set values from bindings.

    Before the property modifications have any effect, you need to assign the instance to an artboard with Artboard.viewModelInstance.

    Instances can be created from one File and applied to another. See transfer for more information.