SourceBuilder

class SourceBuilder(val sourceConfig: SourceConfig)

Creates and configures a Source instance.

Provides the same functionality as Source() with a more convenient style when used from Java.

Constructors

Link copied to clipboard
constructor(sourceConfig: SourceConfig)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
fun build(): Source

Builds a Source as configured by this builder.

Link copied to clipboard
fun configureAnalytics(sourceMetadata: SourceMetadata): SourceBuilder

Configures the analytics data collection for the Source. In case that analytics data collection is disabled on the Player, the sourceMetadata has no effect. Per default analytics data collection is configured with a default SourceMetadata.