View Model
A description of a ViewModel in the Rive file. It can be used to retrieve property definitions at runtime. However, properties cannot be modified - that requires an instance. Use one of the createInstance methods to create an instance with mutable properties from this ViewModel.
Parameters
Pointer to the C++ counterpart.
Lock shared by this view model's File and native objects derived from it.
Types
Properties
Getter/Setter for the underlying C++ pointer value.
Whether this objects underlying pointer is still valid.
The number of instances of this ViewModel. Useful for index-based iteration.
The available properties of the ViewModel.
The number of properties in this ViewModel.
Functions
Increments the references for this counter. Cannot be used for initialization - use refs.incrementAndGet instead.
Create a new blank ViewModelInstance. Use Artboard::setViewModel to apply it. The instance name will be an empty string.
Create a new ViewModelInstance. Use Artboard::setViewModel to apply it.
Create a new ViewModelInstance. Use Artboard::setViewModel to apply it.
Create a new ViewModelInstance. Use Artboard::setViewModel to apply it.
Decrements the reference counter.