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 SummaryConstructors
- 
Method SummaryModifier 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.AnalyticsSessionadClick, adError, adPause, adResume, adSkipped, adStart, adStop, adWillStart, detachFromController, getEnabled, onExoPlayerStateChanged, release, reportPlayerState, seekEnd, seekProcessed, seekStart, sendError, start, stop
- 
Constructor Details- 
AnalyticsSessionProxy
 
- 
- 
Method Details- 
getSessions
- 
setEnabledpublic void setEnabled(boolean enabled) Description copied from class:AnalyticsSessionEnable or disable the session.- Overrides:
- setEnabledin class- AnalyticsSession
- Parameters:
- enabled- the value
 
- 
startInternalpublic void startInternal(@NonNull PlayerController playerController, @NonNull AnalyticsMetaData analyticsMetaData) 
- 
stopInternalpublic void stopInternal()
- 
adWillStartInternal
- 
adStartInternal
- 
adStopInternalpublic void adStopInternal()
- 
adErrorInternal
- 
adSkippedInternalpublic void adSkippedInternal()
- 
reportPlayerStateInternal
- 
sendErrorInternal
- 
seekStartInternalpublic void seekStartInternal(long newPosition) 
- 
seekEndInternalpublic void seekEndInternal()
- 
seekProcessedInternalpublic void seekProcessedInternal()
- 
detachFromControllerInternalpublic void detachFromControllerInternal()
- 
releaseInternalpublic void releaseInternal()
- 
onExoPlayerStateChangedInternalpublic void onExoPlayerStateChangedInternal(boolean playWhenReady, int playbackState) 
- 
idDescription 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.
 
- 
onDestroyDescription 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
 
- 
onOpenBundleDescription 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 controller
- bundle- The bundle
 
- 
onOpenStateDescription 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 controller
- playerConfig- The playback state
 
 
-