-
- All Implemented Interfaces:
-
app.rive.runtime.kotlin.core.RefCount
public final class ViewModelTriggerProperty extends ViewModelProperty<ViewModelTriggerProperty.TriggerUnit>
A trigger property of a ViewModelInstance. Use trigger fire the trigger.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public final classViewModelTriggerProperty.TriggerUnitA type similar to Unit for triggers. Unlike Unit, this type can have unique instances to trigger kotlinx.coroutines.flow.StateFlow updates.
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate ViewModelTriggerProperty.TriggerUnitvalueprivate final <ERROR CLASS>valueFlowprivate final BooleanhasCppObjectprivate AtomicIntegerrefsprivate LongcppPointerprivate final List<RefCount>dependenciesprivate final IntegerrefCount
-
Constructor Summary
Constructors Constructor Description ViewModelTriggerProperty(Long unsafeCppPointer)
-
Method Summary
Modifier and Type Method Description final StringgetName()final ViewModelTriggerProperty.TriggerUnitgetValue()final UnitsetValue(ViewModelTriggerProperty.TriggerUnit 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 List<RefCount>getDependencies()IntegergetRefCount()final Unittrigger()-
Methods inherited from class app.rive.runtime.kotlin.core.ViewModelTriggerProperty
cppHasChanged, cppName -
Methods inherited from class app.rive.runtime.kotlin.core.ViewModelProperty
acquire, cppDelete, release -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ViewModelTriggerProperty
ViewModelTriggerProperty(Long unsafeCppPointer)
-
-
Method Detail
-
getValue
final ViewModelTriggerProperty.TriggerUnit getValue()
-
setValue
final Unit setValue(ViewModelTriggerProperty.TriggerUnit value)
-
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 List<RefCount> getDependencies()
-
getRefCount
Integer getRefCount()
-
-
-
-