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 SummaryNested classes/interfaces inherited from interface android.os.ParcelableParcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal StringThe asset ID that identifies the currently played contentstatic final Parcelable.Creator<AnalyticsMetaData>intThe duration of the current asset in secondsfinal BundleAdditional and plugin specific meta-data.final booleanTrue if the current asset is a live streamAn identifier for the current UserFields inherited from interface android.os.ParcelableCONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
- 
Constructor SummaryConstructors
- 
Method Summary
- 
Field Details- 
CREATOR
- 
livepublic final boolean liveTrue if the current asset is a live stream
- 
assetIdThe asset ID that identifies the currently played content
- 
extraAdditional 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.
- 
viewerIdAn identifier for the current User
- 
durationSecondspublic int durationSecondsThe duration of the current asset in seconds
 
- 
- 
Constructor Details- 
AnalyticsMetaDataCreate a new instance- Parameters:
- live- True if the current content is a live stream
- assetId- The asset ID uniquely identifies the content
 
 
- 
- 
Method Details- 
describeContentspublic int describeContents()- Specified by:
- describeContentsin interface- Parcelable
 
- 
writeToParcel- Specified by:
- writeToParcelin interface- Parcelable
 
 
-