Class SeekEvent

  • All Implemented Interfaces:
    Event

    public class SeekEvent
    extends java.lang.Object
    implements Event
    Payload that accompanies the onSeek() event.
    • Constructor Summary

      Constructors 
      Constructor Description
      SeekEvent​(double position, double offset)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      double getOffset()  
      double getPosition()  
      • Methods inherited from class java.lang.Object

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

      • SeekEvent

        public SeekEvent​(double position,
                         double offset)
    • Method Detail

      • getPosition

        public double getPosition()
        Returns:
        The position of the player before the player seeks (in seconds).
      • getOffset

        public double getOffset()
        Returns:
        The position that has been requested to seek to (in seconds).