Package 

Class AudioAsset

  • All Implemented Interfaces:
    java.lang.AutoCloseable

    
    public final class AudioAsset
    extends Asset<AudioHandle>
                        

    An audio asset, representing a playable sound, managed by a RiveWorker.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class AudioAsset.Companion
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private final AudioHandle handle
    • Method Summary

      Modifier and Type Method Description
      final AudioHandle getHandle()
      • Methods inherited from class app.rive.AudioAsset

        register, unregister
      • Methods inherited from class app.rive.Asset

        close
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AudioAsset

        AudioAsset(AudioHandle handle, CommandQueue worker)
        Parameters:
        handle - The handle to the audio on the command server.
        worker - The Rive worker that owns the audio.