Class Timeline

    • Field Detail

      • EMPTY

        public static final Timeline EMPTY
    • Method Detail

      • getPeriodCount

        public int getPeriodCount()
        Returns the number of Period in the Timeline
        Returns:
        the number of Period
      • getWindowCount

        public int getWindowCount()
        Returns the number of Window in the Timeline
        Returns:
        the number of Window
      • getPeriod

        @Nullable
        public Timeline.Period getPeriod​(int index)
        Returns the requested Period
        Parameters:
        index - the index of the Period to return
        Returns:
        the Period, or null if out of bounds
      • getWindow

        @Nullable
        public Timeline.Window getWindow​(int index)
        Returns the requested Window
        Parameters:
        index - the index of the Window to return
        Returns:
        the Window, or null if out of bounds
      • isEmpty

        public boolean isEmpty()
        Returns:
        whether the Timeline is empty.