Interface PlaybackSessionManager.Listener

    • Method Detail

      • onSessionActive

        void onSessionActive​(AnalyticsListener.EventTime eventTime,
                             String sessionId)
        Called when a session becomes active, i.e. playing in the foreground.
        Parameters:
        eventTime - The AnalyticsListener.EventTime at which the session becomes active.
        sessionId - The identifier of the session.
      • onAdPlaybackStarted

        void onAdPlaybackStarted​(AnalyticsListener.EventTime eventTime,
                                 String contentSessionId,
                                 String adSessionId)
        Called when a session is interrupted by ad playback.
        Parameters:
        eventTime - The AnalyticsListener.EventTime at which the ad playback starts.
        contentSessionId - The session identifier of the content session.
        adSessionId - The identifier of the ad session.
      • onSessionFinished

        void onSessionFinished​(AnalyticsListener.EventTime eventTime,
                               String sessionId,
                               boolean automaticTransitionToNextPlayback)
        Called when a session is permanently finished.
        Parameters:
        eventTime - The AnalyticsListener.EventTime at which the session finished.
        sessionId - The identifier of the finished session.
        automaticTransitionToNextPlayback - Whether the session finished because of an automatic transition to the next playback item.