Stay organized with collections
Save and categorize content based on your preferences.
Interfaces
Classes
Annotations
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-05-15 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-05-15 UTC."],[],[],null,["# androidx.media3.exoplayer.analytics\n===================================\n\n*** ** * ** ***\n\nKotlin \\|[Java](/reference/androidx/media3/exoplayer/analytics/package-summary \"View this page in Java\")\n\nInterfaces\n----------\n\n|--------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AnalyticsCollector](/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsCollector) | Interface for data collectors that forward analytics events to [AnalyticsListeners](/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener). |\n| [AnalyticsListener](/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener) | A listener for analytics events. |\n| [PlaybackSessionManager](/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackSessionManager) | Manager for active playback sessions. |\n| [PlaybackSessionManager.Listener](/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackSessionManager.Listener) | A listener for session updates. |\n| [PlaybackStatsListener.Callback](/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackStatsListener.Callback) | A listener for [PlaybackStats](/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackStats) updates. |\n\nClasses\n-------\n\n|------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AnalyticsListener.EventTime](/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener.EventTime) | Time information of an event. |\n| [AnalyticsListener.Events](/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener.Events) | A set of [EventFlags](/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener.EventFlags). |\n| [DefaultAnalyticsCollector](/reference/kotlin/androidx/media3/exoplayer/analytics/DefaultAnalyticsCollector) | Data collector that forwards analytics events to [AnalyticsListeners](/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener). |\n| [DefaultPlaybackSessionManager](/reference/kotlin/androidx/media3/exoplayer/analytics/DefaultPlaybackSessionManager) | Default [PlaybackSessionManager](/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackSessionManager) which instantiates a new session for each window in the timeline and also for each ad within the windows. |\n| [MediaMetricsListener](/reference/kotlin/androidx/media3/exoplayer/analytics/MediaMetricsListener) | An [AnalyticsListener](/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener) that interacts with the Android [MediaMetricsManager](https://developer.android.com/reference/android/media/metrics/MediaMetricsManager.html). |\n| [PlaybackStats](/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackStats) | Statistics about playbacks. |\n| [PlaybackStats.EventTimeAndException](/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackStats.EventTimeAndException) | Stores an exception with the event time at which it occurred. |\n| [PlaybackStats.EventTimeAndFormat](/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackStats.EventTimeAndFormat) | Stores a format with the event time at which it started being used, or `null` to indicate that no format was used. |\n| [PlaybackStats.EventTimeAndPlaybackState](/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackStats.EventTimeAndPlaybackState) | Stores a playback state with the event time at which it became active. |\n| [PlaybackStatsListener](/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackStatsListener) | [AnalyticsListener](/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener) to gather [PlaybackStats](/reference/kotlin/androidx/media3/exoplayer/analytics/PlaybackStats) from the player. |\n| [PlayerId](/reference/kotlin/androidx/media3/exoplayer/analytics/PlayerId) | Identifier for a player instance. |\n\nAnnotations\n-----------\n\n|--------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AnalyticsListener.EventFlags](/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener.EventFlags) | Events that can be reported via [onEvents](/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener#onEvents(androidx.media3.common.Player,androidx.media3.exoplayer.analytics.AnalyticsListener.Events)). |"]]