Package com.google.android.exoplayer2
Class Player.Events
- java.lang.Object
-
- com.google.android.exoplayer2.Player.Events
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
contains(int event)
Returns whether the givenPlayer.Event
occurred.boolean
containsAny(int... events)
Returns whether any of the givenevents
occurred.boolean
equals(Object obj)
int
get(int index)
Returns thePlayer.Event
at the given index.int
hashCode()
int
size()
Returns the number of events in the set.
-
-
-
Method Detail
-
contains
public boolean contains(@Event int event)
Returns whether the givenPlayer.Event
occurred.- Parameters:
event
- ThePlayer.Event
.- Returns:
- Whether the
Player.Event
occurred.
-
containsAny
public boolean containsAny(@Event int... events)
Returns whether any of the givenevents
occurred.
-
size
public int size()
Returns the number of events in the set.
-
get
@Event public int get(int index)
Returns thePlayer.Event
at the given index.Although index-based access is possible, it doesn't imply a particular order of these events.
- Parameters:
index
- The index. Must be between 0 (inclusive) andsize()
(exclusive).- Returns:
- The
Player.Event
at the given index. - Throws:
IndexOutOfBoundsException
- If index is outside the allowed range.
-
-