Class AnalyticsSessionProxy

    • Constructor Detail

      • AnalyticsSessionProxy

        public AnalyticsSessionProxy​(@Nullable
                                     List<AnalyticsSession> sessions)
    • Method Detail

      • setEnabled

        public void setEnabled​(boolean enabled)
        Description copied from class: AnalyticsSession
        Enable or disable the session.
        Overrides:
        setEnabled in class AnalyticsSession
        Parameters:
        enabled - the value
      • stopInternal

        public void stopInternal()
      • adStartInternal

        public void adStartInternal​(Ad ad)
      • adStopInternal

        public void adStopInternal()
      • adSkippedInternal

        public void adSkippedInternal()
      • sendErrorInternal

        public void sendErrorInternal​(String code,
                                      String message,
                                      int severity)
      • seekStartInternal

        public void seekStartInternal​(long newPosition)
      • seekEndInternal

        public void seekEndInternal()
      • seekProcessedInternal

        public void seekProcessedInternal()
      • detachFromControllerInternal

        public void detachFromControllerInternal()
      • releaseInternal

        public void releaseInternal()
      • onExoPlayerStateChangedInternal

        public void onExoPlayerStateChangedInternal​(boolean playWhenReady,
                                                    int playbackState)
      • id

        @NonNull
        public Class id()
        Description copied from interface: PlayerControllerPlugin.Component
        Returns the class that is used to identify this component when it is registered with the player controller. This is what you need to pass to PlayerController.getComponent(Class) to get the registered instance of this component.
        Returns:
        The class that identifies this component.
      • onDestroy

        public void onDestroy​(@NonNull
                              PlayerController playerController)
        Description copied from interface: PlayerControllerPlugin.Component
        Called when the controller is destroyed. Implementation must use this to unregister any listeners that were attached to the controller before.
        Parameters:
        playerController - The player controller
      • onOpenBundle

        public void onOpenBundle​(@NonNull
                                 PlayerController playerController,
                                 @NonNull
                                 Bundle bundle)
        Description copied from interface: PlayerControllerPlugin.Component
        Called when the player controller is opened with a bundle. Implementations can use this to extract or modify bundle data.
        Parameters:
        playerController - The player controller
        bundle - The bundle
      • onOpenState

        public void onOpenState​(PlayerController playerController,
                                PlayerConfig playerConfig)
        Description copied from interface: PlayerControllerPlugin.Component
        Called when the player controller is opened with a config. Implementations can use this to extract or modify config data.
        Parameters:
        playerController - The player controller
        playerConfig - The playback state