docs/doc/reference/com/google/android/exoplayer2/Player.Events.html
Package com.google.android.exoplayer2
Enclosing interface:Player
public static final classPlayer.Eventsextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
A set of events.
Constructors | Constructor | Description |
| --- | --- |
| Events(FlagSet flags) |
Creates an instance.
|
All Methods Instance Methods Concrete Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| boolean | contains(@com.google.android.exoplayer2.Player.Event int event) |
Returns whether the given Player.Event occurred.
|
| boolean | containsAny(@com.google.android.exoplayer2.Player.Event int... events) |
Returns whether any of the given events occurred.
|
| boolean | equals(Object obj) | |
| @com.google.android.exoplayer2.Player.Event int | get(int index) |
Returns the Player.Event at the given index.
|
| int | hashCode() | |
| int | size() |
Returns the number of events in the set.
|
-
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
public Events([FlagSet](util/FlagSet.html "class in com.google.android.exoplayer2.util")flags)
Creates an instance.
Parameters:flags - The FlagSet containing the events.
-
public boolean contains([@Event](Player.Event.html "annotation in com.google.android.exoplayer2")@com.google.android.exoplayer2.Player.Event int event)
Returns whether the given Player.Event occurred.
Parameters:event - The Player.Event.Returns:Whether the Player.Event occurred.
-
public boolean containsAny([@Event](Player.Event.html "annotation in com.google.android.exoplayer2")@com.google.android.exoplayer2.Player.Event int... events)
Returns whether any of the given events occurred.
Parameters:events - The events.Returns:Whether any of the events occurred.
-
public int size()
Returns the number of events in the set.
-
[@Event](Player.Event.html "annotation in com.google.android.exoplayer2")public @com.google.android.exoplayer2.Player.Event int get(int index)
Returns the Player.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) and size() (exclusive).Returns:The Player.Event at the given index.Throws:IndexOutOfBoundsException - If index is outside the allowed range.
-
public int hashCode()
Overrides:hashCode in class Object
-
public boolean equals(@Nullable[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")obj)
Overrides:equals in class Object