Class ComscoreStreamsense
java.lang.Object
com.akamai.amp.analytics.comscorestreamsense.ComscoreStreamsense
public class ComscoreStreamsense
extends java.lang.Object
This class is the Builder in charge of creating instances of the
It also provides extra functionality unrelated to each analytics session, as well as important constant values.
AmpComscoreStreamsenseAnalyticsTracker based on the info provided. It also provides extra functionality unrelated to each analytics session, as well as important constant values.
-
Constructor Summary
Constructors Constructor Description ComscoreStreamsense() -
Method Summary
Modifier and Type Method Description static AmpComscoreStreamsenseAnalyticsTrackercreate(StreamsenseData data)Method builder used to create a new instance of theAmpComscoreStreamsenseAnalyticsTracker.static AmpComscoreStreamsenseAnalyticsTrackercreate(VideoPlayerView videoPlayerView, StreamsenseData data)Method builder used to create a new instance of theAmpComscoreStreamsenseAnalyticsTracker.static longgetShortLongFormLimitInMillis()It provides the long form limit.static voidonApplicationCreate(StreamsenseAppData appData, android.content.Context context)Method used to initialize the persistent labels and App configuration needed by Comscore.static voidonApplicationCreate(StreamsenseAppData appData, android.content.Context context, UserConsent userConsent)Method used to initialize the persistent labels and App configuration needed by Comscore.static voidsetShortLongFormLimitInMillis(long param)It sets a new long form limit.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
ComscoreStreamsense
public ComscoreStreamsense()
-
-
Method Details
-
create
Method builder used to create a new instance of theAmpComscoreStreamsenseAnalyticsTracker.- Parameters:
data- an instance of theStreamsenseDataneeded to start the analytics session.
-
create
public static AmpComscoreStreamsenseAnalyticsTracker create(VideoPlayerView videoPlayerView, StreamsenseData data)Method builder used to create a new instance of theAmpComscoreStreamsenseAnalyticsTracker.- Parameters:
videoPlayerView- reference of theVideoPlayerViewbeing used for the playback.data- an instance of theStreamsenseDataneeded to start the analytics session.
-
onApplicationCreate
public static void onApplicationCreate(StreamsenseAppData appData, android.content.Context context)Method used to initialize the persistent labels and App configuration needed by Comscore.- Parameters:
appData- reference of theStreamsenseAppDatabeing used for the playback.context- an instance of theContextof the application.
-
onApplicationCreate
public static void onApplicationCreate(StreamsenseAppData appData, android.content.Context context, UserConsent userConsent)Method used to initialize the persistent labels and App configuration needed by Comscore.- Parameters:
appData- reference of theStreamsenseAppDatabeing used for the playback.context- an instance of theContextof the application.userConsent- reference of theUserConsentvalue selected by the user.
-
getShortLongFormLimitInMillis
public static long getShortLongFormLimitInMillis()It provides the long form limit.- Returns:
- long form limit in milliseconds.
-
setShortLongFormLimitInMillis
public static void setShortLongFormLimitInMillis(long param)It sets a new long form limit.- Parameters:
param- new long form limit in milliseconds.
-