# Package com.google.android.exoplayer2.analytics

- Interface Summary
  Interface | Description
  --- | ---
  AnalyticsCollector | Interface for data collectors that forward analytics events to `AnalyticsListeners`.
  AnalyticsListener | A listener for analytics events.
  PlaybackSessionManager | Manager for active playback sessions.
  PlaybackSessionManager.Listener | A listener for session updates.
  PlaybackStatsListener.Callback | A listener for `PlaybackStats` updates.

- Class Summary
  Class | Description
  --- | ---
  AnalyticsListener.Events | A set of `AnalyticsListener.EventFlags`.
  AnalyticsListener.EventTime | Time information of an event.
  DefaultAnalyticsCollector | Data collector that forwards analytics events to `AnalyticsListeners`.
  DefaultPlaybackSessionManager | Default `PlaybackSessionManager` which instantiates a new session for each window in the timeline and also for each ad within the windows.
  MediaMetricsListener | An `AnalyticsListener` that interacts with the Android `MediaMetricsManager`.
  PlaybackStats | Statistics about playbacks.
  PlaybackStats.EventTimeAndException | Stores an exception with the event time at which it occurred.
  PlaybackStats.EventTimeAndFormat | Stores a format with the event time at which it started being used, or `null` to indicate that no format was used.
  PlaybackStats.EventTimeAndPlaybackState | Stores a playback state with the event time at which it became active.
  PlaybackStatsListener | `AnalyticsListener` to gather `PlaybackStats` from the player.
  PlayerId | Identifier for a player instance.

- Annotation Types Summary
  Annotation Type | Description
  --- | ---
  AnalyticsListener.EventFlags | Events that can be reported via `AnalyticsListener.onEvents(Player, Events)`.