View Model Image Property
class ViewModelImageProperty(unsafeCppPointer: Long, fileLock: ReentrantLock) : ViewModelProperty<Unit>
An image property of a ViewModelInstance. Values are RiveRenderImage type, and must be constructed from encoded bytes with RiveRenderImage.make.
Unlike other property types, this property can only be set with set. It cannot be read or observed. It's value and valueFlow are not applicable and will always return Unit.
Setting to null will remove the image and release the reference to the image.
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
Link copied to clipboard