Class Timeline
java.lang.Object
com.castlabs.android.player.models.Timeline
Timeline object.
Composed of Timeline.Window
s and Timeline.Period
s.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
A Period.static class
A Window. -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetPeriod
(int index) Returns the requested Periodint
Returns the number of Period in the TimelineReturns the List ofTimeline.Period
sgetWindow
(int index) Returns the requested Windowint
Returns the number of Window in the TimelineReturns the List ofTimeline.Period
sboolean
isEmpty()
-
Field Details
-
EMPTY
-
-
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.Period
s- Returns:
- the List of
Timeline.Period
s
-
getWindows
Returns the List ofTimeline.Period
s- Returns:
- the List of
Timeline.Period
s
-
isEmpty
public boolean isEmpty()- Returns:
- whether the Timeline is empty.
-