Package com.castlabs.analytics
Class AnalyticsMetaData
java.lang.Object
com.castlabs.analytics.AnalyticsMetaData
- All Implemented Interfaces:
Parcelable
The meta-data class wraps around mandatory and optional meta-data that are send to
various analytics backends.
The two parameters that are mandatory in all cases are
live
and assetId
.
live
needs to be set to true
if the content is a live stream. Analytics
backends usually require this information before playback starts. The assetId
identifies the content uniquely within the analytics system.- Since:
- 3.1.0
-
Nested Class Summary
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
The asset ID that identifies the currently played contentstatic final Parcelable.Creator<AnalyticsMetaData>
int
The duration of the current asset in secondsfinal Bundle
Additional and plugin specific meta-data.final boolean
True if the current asset is a live streamAn identifier for the current UserFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
CREATOR
-
live
public final boolean liveTrue if the current asset is a live stream -
assetId
The asset ID that identifies the currently played content -
extra
Additional and plugin specific meta-data. See the individual plugin documentations for a list of key/value pairs that can be set in the extras bundle. -
viewerId
An identifier for the current User -
durationSeconds
public int durationSecondsThe duration of the current asset in seconds
-
-
Constructor Details
-
AnalyticsMetaData
Create a new instance- Parameters:
live
- True if the current content is a live streamassetId
- The asset ID uniquely identifies the content
-
-
Method Details
-
describeContents
public int describeContents()- Specified by:
describeContents
in interfaceParcelable
-
writeToParcel
- Specified by:
writeToParcel
in interfaceParcelable
-