Interface AmpComscoreStreamsenseAnalyticsTracker
- All Known Implementing Classes:
StreamsenseEventsHandler
public interface AmpComscoreStreamsenseAnalyticsTracker
Analytics Tracker for Comscore Streamsense Analytics.
Automatically sends beacons to the comscore streamsense backend, reacting to the player's events (like start playback, stop playback, start buffering, stop buffering and many others)
Automatically sends beacons to the comscore streamsense backend, reacting to the player's events (like start playback, stop playback, start buffering, stop buffering and many others)
-
Method Summary
Modifier and Type Method Description voidexpectPreroll()This method is used to notify the tracker the current playback currently playing contains pre rolls.UserConsentgetUserConsent()This method returns the current User consent selection.voidnotifyHiddenEvent()This method fires a hidden event defined by Comscore.voidnotifyHiddenEvent(java.util.Map<java.lang.String,java.lang.String> params)This method fires hidden events defined by Comscore.voidnotifyLabelChange(java.lang.String key, java.lang.String value)This method is used to manually notify a label change.voidnotifyViewEvent()This method fires a view event defined by Comscore.voidnotifyViewEvent(java.util.Map<java.lang.String,java.lang.String> params)This method fires view events defined by Comscore.voidsetContentMetadata(ContentMetadata contentMetadata)This method is used to set the content Metadata for the session.voidsetUserConsent(UserConsent userConsent)This method is used to override the current User consent selection.
-
Method Details
-
notifyHiddenEvent
void notifyHiddenEvent()This method fires a hidden event defined by Comscore.
(Using this method can cause duplicate reactions: its usage is already handled correctly by the tracker, however, there could be corner cases where it is required to manually call it, caused by corner cases or by a specific request from a customer). -
notifyHiddenEvent
void notifyHiddenEvent(java.util.Map<java.lang.String,java.lang.String> params)This method fires hidden events defined by Comscore.
(Using this method can cause duplicate reactions: its usage is already handled correctly by the tracker, however, there could be corner cases where it is required to manually call it, caused by corner cases or by a specific request from a customer). -
notifyViewEvent
void notifyViewEvent()This method fires a view event defined by Comscore.
(Using this method can cause duplicate reactions: its usage is already handled correctly by the tracker, however, there could be corner cases where it is required to manually call it, caused by corner cases or by a specific request from a customer). -
notifyViewEvent
void notifyViewEvent(java.util.Map<java.lang.String,java.lang.String> params)This method fires view events defined by Comscore.
(Using this method can cause duplicate reactions: its usage is already handled correctly by the tracker, however, there could be corner cases where it is required to manually call it, caused by corner cases or by a specific request from a customer). -
getUserConsent
UserConsent getUserConsent()This method returns the current User consent selection.- Returns:
- an instance of the
UserConsentselected.
-
setUserConsent
This method is used to override the current User consent selection.- Parameters:
userConsent- an instance of theUserConsentselected.
-
notifyLabelChange
void notifyLabelChange(java.lang.String key, java.lang.String value)This method is used to manually notify a label change.- Parameters:
key- key of the label.value- value of the label.
-
setContentMetadata
void setContentMetadata(ContentMetadata contentMetadata)This method is used to set the content Metadata for the session.- Parameters:
contentMetadata- instance of theContentMetadatacreated.
-
expectPreroll
void expectPreroll()This method is used to notify the tracker the current playback currently playing contains pre rolls.
-