Class TimeEvent

  • All Implemented Interfaces:
    Event

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

      Constructors 
      Constructor Description
      TimeEvent​(double position, double duration)  
    • Method Summary

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

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

      • TimeEvent

        public TimeEvent​(double position,
                         double duration)
    • Method Detail

      • getPosition

        public double getPosition()
        Returns:
        Playback position in seconds.
      • getDuration

        public double getDuration()
        Returns:
        Duration of the current playlist item in seconds.