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 AmpComscoreStreamsenseAnalyticsTracker based on the info provided.
It also provides extra functionality unrelated to each analytics session, as well as important constant values.
  • Constructor Details

    • ComscoreStreamsense

      public ComscoreStreamsense()
  • Method Details

    • create

      public static AmpComscoreStreamsenseAnalyticsTracker create​(StreamsenseData data)
      Method builder used to create a new instance of the AmpComscoreStreamsenseAnalyticsTracker.
      Parameters:
      data - an instance of the StreamsenseData needed to start the analytics session.
    • create

      public static AmpComscoreStreamsenseAnalyticsTracker create​(VideoPlayerView videoPlayerView, StreamsenseData data)
      Method builder used to create a new instance of the AmpComscoreStreamsenseAnalyticsTracker.
      Parameters:
      videoPlayerView - reference of the VideoPlayerView being used for the playback.
      data - an instance of the StreamsenseData needed 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 the StreamsenseAppData being used for the playback.
      context - an instance of the Context of 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 the StreamsenseAppData being used for the playback.
      context - an instance of the Context of the application.
      userConsent - reference of the UserConsent value 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.