-
- All Implemented Interfaces:
-
app.rive.runtime.kotlin.core.RefCount
public final class BindableArtboard extends NativeObject
A BindableArtboard is an artboard reference that can be assigned to a ViewModelArtboardProperty. It should only be used for that purpose and cannot be used as a regular Artboard.
Instances of this class are created via File.createBindableArtboardByName or File.createDefaultBindableArtboard.
⚠️Important: This bindable artboard can outlive the File instance that created it, but in order to do so it has an extra reference count. You need to call release when you are done with it, otherwise it will leak memory.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringnameprivate final ViewModelInstanceviewModelInstanceprivate final BooleanhasCppObjectprivate AtomicIntegerrefsprivate LongcppPointerprivate final List<RefCount>dependenciesprivate final IntegerrefCount
-
Constructor Summary
Constructors Constructor Description BindableArtboard(Long unsafeCppPointer, ViewModelInstance viewModelInstance)
-
Method Summary
Modifier and Type Method Description final StringgetName()final ViewModelInstancegetViewModelInstance()final BooleangetHasCppObject()final AtomicIntegergetRefs()final UnitsetRefs(AtomicInteger refs)final LonggetCppPointer()final UnitsetCppPointer(Long cppPointer)final List<RefCount>getDependencies()IntegergetRefCount()UnitcppDelete(Long pointer)final StringcppName(Long pointer)-
-
Constructor Detail
-
BindableArtboard
BindableArtboard(Long unsafeCppPointer, ViewModelInstance viewModelInstance)
- Parameters:
unsafeCppPointer- The pointer to the native object.viewModelInstance- The view model instance to apply to the artboard instance when bound.
-
-
Method Detail
-
getViewModelInstance
final ViewModelInstance getViewModelInstance()
-
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()
-
-
-
-