Enum TrackMarkerHandler.MarkerState

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
      BYPASSED
      A seek was performed which jumped over the marked position.
      ENDED
      The track ended without the marker being triggered (either due to an exception or because the track duration was smaller than the marked position).
      LATE
      The playback position was already beyond the marked position when the marker was placed.
      OVERWRITTEN
      The marker has been overwritten by setting the marker of the track to another non-null marker.
      REACHED
      The specified position has been reached with normal playback.
      REMOVED
      The marker has been removed by setting the marker of the track to null.
      STOPPED
      The track was stopped before it ended, before the marked position was reached.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static TrackMarkerHandler.MarkerState valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static TrackMarkerHandler.MarkerState[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • OVERWRITTEN

        public static final TrackMarkerHandler.MarkerState OVERWRITTEN
        The marker has been overwritten by setting the marker of the track to another non-null marker.
      • LATE

        public static final TrackMarkerHandler.MarkerState LATE
        The playback position was already beyond the marked position when the marker was placed.
      • ENDED

        public static final TrackMarkerHandler.MarkerState ENDED
        The track ended without the marker being triggered (either due to an exception or because the track duration was smaller than the marked position).
    • Method Detail

      • values

        public static TrackMarkerHandler.MarkerState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (TrackMarkerHandler.MarkerState c : TrackMarkerHandler.MarkerState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static TrackMarkerHandler.MarkerState valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null