Package com.brightcove.ssai.analytics
Class SSAIAnalytics
java.lang.Object
com.brightcove.player.event.AbstractComponent
com.brightcove.ssai.analytics.SSAIAnalytics
- All Implemented Interfaces:
Component
@Emits(events="adViewableImpression")
@ListensFor(events={"adPaused","adResumed","skipAd","clickLinearCreative"})
@RestrictTo(LIBRARY)
public class SSAIAnalytics
extends AbstractComponent
Registers the appropriate SSAI event listeners to send analytic events containing the
ad insight data for each played slot and ad.
-
Field Summary
Fields inherited from class com.brightcove.player.event.AbstractComponent
eventEmitter, listenerTokens
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Finish ad insights timer tasks.getAdInsight
(String adInsightEvent, AdPod adPod, Ad<?> ad) getAdPodInsight
(String adInsightEvent, AdPod adPod) void
Reset ad insight parameter values after ad is complete or skipped.void
setAdView
(android.view.View adView) Set current AdViewvoid
setIsLive
(boolean isLive) void
setTotalTimelineLength
(long totalTimelineLength) Set total timeline length to calculate ad pod type.void
startAdInsightTimerTasks
(AdPod adPod, Ad<?> ad) Starts ad insight timer tasks.Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
-
Constructor Details
-
SSAIAnalytics
-
-
Method Details
-
getAdPodInsight
-
getAdInsight
-
setIsLive
public void setIsLive(boolean isLive) -
setAdView
public void setAdView(android.view.View adView) Set current AdView- Parameters:
adView
- - Current ad view.
-
setTotalTimelineLength
public void setTotalTimelineLength(long totalTimelineLength) Set total timeline length to calculate ad pod type.- Parameters:
totalTimelineLength
- - Current timeline total length.
-
startAdInsightTimerTasks
Starts ad insight timer tasks. -
finishAdInsightsTimerTasks
public void finishAdInsightsTimerTasks()Finish ad insights timer tasks. -
resetAdInsightValues
public void resetAdInsightValues()Reset ad insight parameter values after ad is complete or skipped.
-