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
ConstructorDescriptionFreeWheelAnalytics
(FreeWheelController controller) Construct a newFreeWheelAnalytics
which sends ad insight analytic data. -
Method Summary
Modifier and TypeMethodDescriptionregister()
Register the event listeners to send analytic events.void
setVideoView
(BaseVideoView videoView) Set theBaseVideoView
responsible for playing FreeWheel ads.Methods inherited from class com.brightcove.player.event.AbstractComponent
addListener, addOnceListener, getEventEmitter, removeListener, removeListeners
-
Constructor Details
-
FreeWheelAnalytics
Construct a newFreeWheelAnalytics
which sends ad insight analytic data.- Parameters:
controller
- TheFreeWheelController
containing theIAdContext
.
-
-
Method Details
-
register
Register the event listeners to send analytic events.- Returns:
- This
FreeWheelAnalytics
object for chaining method calls.
-
setVideoView
Set theBaseVideoView
responsible 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.
-