Interface SoundPlaybackListener

All Superinterfaces:
java.util.EventListener

public interface SoundPlaybackListener
extends java.util.EventListener
This event listener implementation provides callbacks for when a SoundPlayback instance gets cancelled or finished.
  • Method Summary

    Modifier and TypeMethodDescription
    default voidcancelled​(SoundEvent event)
    This method gets called when a SoundPlayback is cancelled.
    default voidfinished​(SoundEvent event)
    This method gets called when a SoundPlayback is finished.
  • Method Details

    • cancelled

      default void cancelled​(SoundEvent event)
      This method gets called when a SoundPlayback is cancelled.
      Parameters:
      event - a SoundEvent object describing the event source and the related Sound.
    • finished

      default void finished​(SoundEvent event)
      This method gets called when a SoundPlayback is finished.
      Parameters:
      event - a SoundEvent object describing the event source and the related Sound.