Class AnalyticsListener.Events

    • Method Detail

      • contains

        public boolean contains​(@EventFlags
                                @com.google.android.exoplayer2.analytics.AnalyticsListener.EventFlags int event)
        Returns whether the given event occurred.
        Parameters:
        event - The event.
        Returns:
        Whether the event occurred.
      • containsAny

        public boolean containsAny​(@EventFlags
                                   @com.google.android.exoplayer2.analytics.AnalyticsListener.EventFlags int... events)
        Returns whether any of the given events occurred.
        Parameters:
        events - The events.
        Returns:
        Whether any of the events occurred.
      • size

        public int size()
        Returns the number of events in the set.
      • get

        @EventFlags
        public @com.google.android.exoplayer2.analytics.AnalyticsListener.EventFlags int get​(int index)
        Returns the 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 event at the given index.