-
- All Implemented Interfaces:
-
app.rive.runtime.kotlin.core.RefCount
public final class ViewModelListProperty extends ViewModelProperty<Unit>
-
-
Field Summary
Fields Modifier and Type Field Description private final Integersizeprivate final Stringnameprivate Unitvalueprivate final <ERROR CLASS>valueFlowprivate final BooleanhasCppObjectprivate AtomicIntegerrefsprivate LongcppPointerprivate final List<RefCount>dependenciesprivate final IntegerrefCount
-
Constructor Summary
Constructors Constructor Description ViewModelListProperty(Long unsafeCppPointer)
-
Method Summary
Modifier and Type Method Description final IntegergetSize()final StringgetName()final UnitgetValue()final UnitsetValue(Unit 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()UnitcppDelete(Long pointer)final ViewModelInstanceelementAt(Integer index)Get the ViewModelInstance at the specified index. final ViewModelInstanceget(Integer index)final Unitadd(ViewModelInstance item)Append the ViewModelInstance to the end of the list. final Unitadd(Integer index, ViewModelInstance item)Insert the ViewModelInstance at the specified index. final Unitremove(ViewModelInstance item)Remove all instances of ViewModelInstance from the list. final UnitremoveAt(Integer index)Remove the item at the specified index from the list. final Unitswap(Integer index1, Integer index2)Swap the items at indices index1 and index2. -
Methods inherited from class app.rive.runtime.kotlin.core.ViewModelListProperty
cppHasChanged, cppName -
Methods inherited from class app.rive.runtime.kotlin.core.ViewModelProperty
acquire, release -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
ViewModelListProperty
ViewModelListProperty(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 List<RefCount> getDependencies()
-
getRefCount
Integer getRefCount()
-
elementAt
final ViewModelInstance elementAt(Integer index)
Get the ViewModelInstance at the specified index.
-
get
final ViewModelInstance get(Integer index)
-
add
final Unit add(ViewModelInstance item)
Append the ViewModelInstance to the end of the list.
-
add
final Unit add(Integer index, ViewModelInstance item)
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.
-
remove
final Unit remove(ViewModelInstance item)
Remove all instances of ViewModelInstance from the list.
-
removeAt
final Unit removeAt(Integer index)
Remove the item at the specified index from the list. The items after the removed item will be shifted one position to the left.
-
-
-
-