Enabled

data class Enabled(val analyticsConfig: AnalyticsConfig = AnalyticsConfig.Builder(licenseKey = DEFERRED_ANALYTICS_LICENSE).build(), val defaultMetadata: DefaultMetadata = DefaultMetadata.Builder().build()) : AnalyticsPlayerConfig

Enables the analytics data collection feature for the Player. If no analyticsConfig is provided, analytics data collection is enabled with default configuration. In the default configuration the analytics license key is automatically fetch online, if one is associated and enabled for the used player license.

An optional defaultMetadata can be provided to set default metadata values for all analytics tracking.

Constructors

Link copied to clipboard
constructor(analyticsConfig: AnalyticsConfig = AnalyticsConfig.Builder(licenseKey = DEFERRED_ANALYTICS_LICENSE).build(), defaultMetadata: DefaultMetadata = DefaultMetadata.Builder().build())

Properties

Link copied to clipboard
val analyticsConfig: AnalyticsConfig
Link copied to clipboard
val defaultMetadata: DefaultMetadata