Package com.castlabs.analytics
Class AnalyticsSessionProxy
java.lang.Object
com.castlabs.analytics.AnalyticsSession
com.castlabs.analytics.AnalyticsSessionProxy
- All Implemented Interfaces:
IAnalyticsSession,PlayerControllerPlugin.Component
Proxy which extends
AnalyticsSession that can delegate
to a list of session.- Since:
- 3.1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadErrorInternal(Ad ad, CastlabsPlayerException exception) voidvoidadStartInternal(Ad ad) voidvoidvoidid()Returns the class that is used to identify this component when it is registered with the player controller.voidonDestroy(PlayerController playerController) Called when the controller is destroyed.voidonExoPlayerStateChangedInternal(boolean playWhenReady, int playbackState) voidonOpenBundle(PlayerController playerController, Bundle bundle) Called when the player controller is opened with a bundle.voidonOpenState(PlayerController playerController, PlayerConfig playerConfig) Called when the player controller is opened with a config.voidvoidvoidvoidvoidseekStartInternal(long newPosition) voidsendErrorInternal(String code, String message, int severity) voidsetEnabled(boolean enabled) Enable or disable the session.voidstartInternal(PlayerController playerController, AnalyticsMetaData analyticsMetaData) voidMethods inherited from class com.castlabs.analytics.AnalyticsSession
adClick, adError, adPause, adResume, adSkipped, adStart, adStop, adWillStart, detachFromController, getEnabled, onExoPlayerStateChanged, release, reportPlayerState, seekEnd, seekProcessed, seekStart, sendError, start, stop
-
Constructor Details
-
AnalyticsSessionProxy
-
-
Method Details
-
getSessions
-
setEnabled
public void setEnabled(boolean enabled) Description copied from class:AnalyticsSessionEnable or disable the session.- Overrides:
setEnabledin classAnalyticsSession- Parameters:
enabled- the value
-
startInternal
public void startInternal(@NonNull PlayerController playerController, @NonNull AnalyticsMetaData analyticsMetaData) -
stopInternal
public void stopInternal() -
adWillStartInternal
-
adStartInternal
-
adStopInternal
public void adStopInternal() -
adErrorInternal
-
adSkippedInternal
public void adSkippedInternal() -
reportPlayerStateInternal
-
sendErrorInternal
-
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
Description copied from interface:PlayerControllerPlugin.ComponentReturns the class that is used to identify this component when it is registered with the player controller. This is what you need to pass toPlayerController.getComponent(Class)to get the registered instance of this component.- Returns:
- The class that identifies this component.
-
onDestroy
Description copied from interface:PlayerControllerPlugin.ComponentCalled 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
Description copied from interface:PlayerControllerPlugin.ComponentCalled when the player controller is opened with a bundle. Implementations can use this to extract or modify bundle data.- Parameters:
playerController- The player controllerbundle- The bundle
-
onOpenState
Description copied from interface:PlayerControllerPlugin.ComponentCalled when the player controller is opened with a config. Implementations can use this to extract or modify config data.- Parameters:
playerController- The player controllerplayerConfig- The playback state
-