View Model Instance
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.
Parameters
Pointer to the C++ counterpart.
Lock shared by the File and native graph this instance belongs to. Updated through updateFileLock when assigned to another native graph.
Types
Properties
Functions
Increments the references for this counter. Cannot be used for initialization - use refs.incrementAndGet instead.
Get a named boolean property.
Get a named color property.
Get a named enum property.
Get a named image property.
Get a nested, named ViewModelInstance.
Get a named list property.
Get a named number property.
Get a named string property.
Get a named trigger property.
Set a nested, named ViewModelInstance.
Start a transfer of this ViewModelInstance to another File. This is necessary because normally the C++ lifetime of the instance is managed by the File it belongs to. When transferring, the instance needs to survive the possible deletion of its owning File.