AnalyticsPlayerConfig

public enum AnalyticsPlayerConfig

Configuration for the analytics data collection feature on the Player.

  • Enables the analytics data collection feature for the Player. If no AnalyticsConfig is provided, analytics data collection is enabled with a default configuration. In the default configuration, the analytics license key is automatically fetched, 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.

    Declaration

    Swift

    case enabled(
        analyticsConfig: AnalyticsConfig = AnalyticsConfig(licenseKey: "DEFERRED"),
        defaultMetadata: DefaultMetadata = DefaultMetadata()
    )
  • Disables analytics data collection for the Player.

    Declaration

    Swift

    case disabled
  • Enables the analytics data collection feature for the Player. If no AnalyticsConfig is provided, analytics data collection is enabled with a default configuration. In the default configuration, the analytics license key is automatically fetched, 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.

    Declaration

    Swift

    public static var enabled: AnalyticsPlayerConfig { get }