-
- All Implemented Interfaces:
-
app.rive.runtime.kotlin.core.RefCount
public abstract class ViewModelProperty<T extends Object> extends NativeObject
A property of type T of a ViewModelInstance. Use value to mutate the property. use valueFlow to subscribe to changes on the value.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate Tvalueprivate final <ERROR CLASS>valueFlowprivate final BooleanhasCppObjectprivate AtomicIntegerrefsprivate LongcppPointerprivate final <ERROR CLASS>dependenciesprivate final IntegerrefCount
-
Constructor Summary
Constructors Constructor Description ViewModelProperty(Long unsafeCppPointer)
-
Method Summary
Modifier and Type Method Description final StringgetName()final TgetValue()final UnitsetValue(T value)final <ERROR CLASS>getValueFlow()A flow of the property's value. final BooleangetHasCppObject()final AtomicIntegergetRefs()final UnitsetRefs(AtomicInteger refs)final LonggetCppPointer()final UnitsetCppPointer(Long cppPointer)final <ERROR CLASS>getDependencies()IntegergetRefCount()final StringcppName(Long cppPointer)final BooleancppHasChanged(Long cppPointer)-
-
Constructor Detail
-
ViewModelProperty
ViewModelProperty(Long unsafeCppPointer)
-
-
Method Detail
-
getValueFlow
final <ERROR CLASS> getValueFlow()
A flow of the property's value. Use for observing changes.
-
getHasCppObject
final Boolean getHasCppObject()
-
getRefs
final AtomicInteger getRefs()
-
setRefs
final Unit setRefs(AtomicInteger refs)
-
getCppPointer
final Long getCppPointer()
-
setCppPointer
final Unit setCppPointer(Long cppPointer)
-
getDependencies
final <ERROR CLASS> getDependencies()
-
getRefCount
Integer getRefCount()
-
cppHasChanged
@VisibleForTesting(otherwise = 2) final Boolean cppHasChanged(Long cppPointer)
-
-
-
-