-
- All Implemented Interfaces:
-
app.rive.runtime.kotlin.core.RefCount
public final class ImageAsset extends FileAsset
A thin Kotlin wrapper for the underlying C++ image asset. Helpful to distinguish between various FileAsset subclasses.
-
-
Field Summary
Fields Modifier and Type Field Description private RiveRenderImageimageprivate final Floatwidthprivate final Floatheightprivate final <ERROR CLASS>nameprivate final <ERROR CLASS>uniqueFilenameprivate final <ERROR CLASS>cdnUrlprivate final BooleanhasCppObjectprivate AtomicIntegerrefsprivate LongcppPointerprivate final <ERROR CLASS>dependenciesprivate final IntegerrefCount
-
Constructor Summary
Constructors Constructor Description ImageAsset(Long address, Integer rendererTypeIdx)
-
Method Summary
Modifier and Type Method Description final RiveRenderImagegetImage()This isn't safe to use outside tests. final UnitsetImage(RiveRenderImage image)final FloatgetWidth()final FloatgetHeight()final <ERROR CLASS>getName()final <ERROR CLASS>getUniqueFilename()final <ERROR CLASS>getCdnUrl()final BooleangetHasCppObject()final AtomicIntegergetRefs()final UnitsetRefs(AtomicInteger refs)final LonggetCppPointer()final UnitsetCppPointer(Long cppPointer)final <ERROR CLASS>getDependencies()IntegergetRefCount()-
Methods inherited from class app.rive.runtime.kotlin.core.ImageAsset
decode -
Methods inherited from class app.rive.runtime.kotlin.core.FileAsset
acquire, cppDelete, release -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
getImage
@VisibleForTesting() final RiveRenderImage getImage()
This isn't safe to use outside tests.
-
setImage
final Unit setImage(RiveRenderImage image)
-
getName
final <ERROR CLASS> getName()
-
getUniqueFilename
final <ERROR CLASS> getUniqueFilename()
-
getCdnUrl
final <ERROR CLASS> getCdnUrl()
-
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()
-
-
-
-