Class FreeWheelAnalytics
java.lang.Object
com.brightcove.player.event.AbstractComponent
com.brightcove.freewheel.analytics.FreeWheelAnalytics
- All Implemented Interfaces:
Component
@Emits(events={"adBreakCompleted","adBreakStarted","adStarted","adViewableImpression","adCompleted","adProgress","adPaused","adResumed","adError"})
@ListensFor(events={})
@RestrictTo(LIBRARY)
public class FreeWheelAnalytics
extends AbstractComponent
Registers the appropriate FreeWheel 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
ConstructorsConstructorDescriptionFreeWheelAnalytics(FreeWheelController controller) Construct a newFreeWheelAnalyticswhich sends ad insight analytic data. -
Method Summary
Modifier and TypeMethodDescriptionregister()Register the event listeners to send analytic events.voidsetVideoView(BaseVideoView videoView) Set theBaseVideoViewresponsible for playing FreeWheel ads.Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
-
Constructor Details
-
FreeWheelAnalytics
Construct a newFreeWheelAnalyticswhich sends ad insight analytic data.- Parameters:
controller- TheFreeWheelControllercontaining theIAdContext.
-
-
Method Details
-
register
Register the event listeners to send analytic events.- Returns:
- This
FreeWheelAnalyticsobject for chaining method calls.
-
setVideoView
Set theBaseVideoViewresponsible for playing FreeWheel ads. This is exposed for testing purposes as the FreeWheel SDK exposes the video view.- Parameters:
videoView- The video view for playback.
-