Class AdobeHeartbeat
java.lang.Object
com.akamai.amp.analytics.adobeheartbeat.AdobeHeartbeat
public class AdobeHeartbeat
extends java.lang.Object
This class is the Builder in charge of creating instances of the
AmpAdobeHeartbeatAnalyticsTracker based on the info provided.
It also provides extra functionality unrelated to each analytics session, as well as important constant values.-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringDEFAULT_AD_BREAK_NAMEDefault ad break namestatic java.lang.StringEXTERNAL_SDKName of the Third party Analyticsstatic java.lang.StringKEY_ASSET_NAMEDeprecated.static java.lang.StringKEY_LIVE_STREAMKey live stream.static java.lang.StringKEY_MEDIA_FRIENDLY_NAMEKey media namestatic java.lang.StringKEY_MEDIA_IDKey media Idstatic java.lang.StringKEY_VIDEO_IDDeprecated.static java.lang.StringVERSIONCurrent version of the player. -
Constructor Summary
Constructors Constructor Description AdobeHeartbeat() -
Method Summary
Modifier and Type Method Description static AmpAdobeHeartbeatAnalyticsTrackercreate(HeartbeatData data)Method builder used to create a new instance of theAmpAdobeHeartbeatAnalyticsTracker.static AmpAdobeHeartbeatAnalyticsTrackercreate(VideoPlayerView videoPlayerView, HeartbeatData data)Method builder used to create a new instance of theAmpAdobeHeartbeatAnalyticsTracker.static java.util.TimeZonegetTimeZone()It provides the current timezone.static voidsetTimeZone(java.util.TimeZone tz)This method sets the current timezone for the tracker to use when needed.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
VERSION
public static final java.lang.String VERSIONCurrent version of the player.- See Also:
- Constant Field Values
-
EXTERNAL_SDK
public static final java.lang.String EXTERNAL_SDKName of the Third party Analytics- See Also:
- Constant Field Values
-
KEY_MEDIA_ID
public static final java.lang.String KEY_MEDIA_IDKey media Id- See Also:
- Constant Field Values
-
KEY_MEDIA_FRIENDLY_NAME
public static final java.lang.String KEY_MEDIA_FRIENDLY_NAMEKey media name- See Also:
- Constant Field Values
-
KEY_VIDEO_ID
@Deprecated public static final java.lang.String KEY_VIDEO_IDDeprecated.This attribute is deprecated, please use KEY_MEDIA_ID instead.- See Also:
- Constant Field Values
-
KEY_ASSET_NAME
@Deprecated public static final java.lang.String KEY_ASSET_NAMEDeprecated.This attribute is deprecated, please use KEY_MEDIA_FRIENDLY_NAME instead.- See Also:
- Constant Field Values
-
KEY_LIVE_STREAM
public static final java.lang.String KEY_LIVE_STREAMKey live stream.- See Also:
- Constant Field Values
-
DEFAULT_AD_BREAK_NAME
public static final java.lang.String DEFAULT_AD_BREAK_NAMEDefault ad break name- See Also:
- Constant Field Values
-
-
Constructor Details
-
AdobeHeartbeat
public AdobeHeartbeat()
-
-
Method Details
-
create
Method builder used to create a new instance of theAmpAdobeHeartbeatAnalyticsTracker.- Parameters:
data- an instance of theHeartbeatDataneeded to start the analytics session.
-
create
public static AmpAdobeHeartbeatAnalyticsTracker create(VideoPlayerView videoPlayerView, HeartbeatData data)Method builder used to create a new instance of theAmpAdobeHeartbeatAnalyticsTracker.- Parameters:
videoPlayerView- reference of theVideoPlayerViewbeing used for the playback.data- an instance of theHeartbeatDataneeded to start the analytics session.
-
getTimeZone
public static java.util.TimeZone getTimeZone()It provides the current timezone.- Returns:
- an instance of the current
TimeZone
-
setTimeZone
public static void setTimeZone(java.util.TimeZone tz)This method sets the current timezone for the tracker to use when needed.- Parameters:
tz- reference of the currentTimeZone
-