Class Timeline
java.lang.Object
com.castlabs.android.player.models.Timeline
Timeline object.
Composed of Timeline.Windows and Timeline.Periods.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder forTimelines.static classA Period.static classA Window. -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptiongetPeriod(int index) Returns the requested PeriodintReturns the number of Period in the TimelineReturns the List ofTimeline.PeriodsgetWindow(int index) Returns the requested WindowintReturns the number of Window in the TimelineReturns the List ofTimeline.WindowsbooleanisEmpty()Returns whether the Timeline is empty.
-
Field Details
-
EMPTY
An empty Timeline.
-
-
Method Details
-
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
Returns the requested Period- Parameters:
index- the index of the Period to return- Returns:
- the Period, or null if out of bounds
-
getWindow
Returns the requested Window- Parameters:
index- the index of the Window to return- Returns:
- the Window, or null if out of bounds
-
getPeriods
Returns the List ofTimeline.Periods- Returns:
- the List of
Timeline.Periods
-
getWindows
Returns the List ofTimeline.Windows- Returns:
- the List of
Timeline.Windows
-
isEmpty
public boolean isEmpty()Returns whether the Timeline is empty.- Returns:
- whether the Timeline is empty.
-