-
- All Implemented Interfaces:
-
app.rive.runtime.kotlin.core.RefCount
public final class AudioAsset extends FileAsset
A thin Kotlin wrapper for the underlying C++ audio asset. Helpful to distinguish between various FileAsset subclasses.
-
-
Field Summary
Fields Modifier and Type Field Description private RiveAudioaudioprivate 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 AudioAsset(Long address, Integer rendererTypeIdx)
-
Method Summary
Modifier and Type Method Description final RiveAudiogetAudio()This isn't safe to use outside tests. final UnitsetAudio(RiveAudio audio)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.AudioAsset
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
-
getAudio
@VisibleForTesting() final RiveAudio getAudio()
This isn't safe to use outside tests.
-
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()
-
-
-
-