View Model List Property
class ViewModelListProperty(unsafeCppPointer: Long, fileLock: ReentrantLock) : ViewModelProperty<Unit>
A list property of ViewModelInstances.
The list is mutable, and can be modified at runtime using add, remove, removeAt, and swap.
The list does not have one particular value to get or set, so value and valueFlow are not applicable and will always return Unit.
See also
Properties
Functions
Link copied to clipboard
Increments the references for this counter. Cannot be used for initialization - use refs.incrementAndGet instead.
Link copied to clipboard
Append the ViewModelInstance to the end of the list.
Insert the ViewModelInstance at the specified index. The item currently at that index and all subsequent items will be shifted one position to the right.
Link copied to clipboard
Link copied to clipboard
Get the ViewModelInstance at the specified index.
Link copied to clipboard
Link copied to clipboard
Remove all instances of ViewModelInstance from the list.