MediaItem.AdsConfiguration.Builder


class MediaItem.AdsConfiguration.Builder


Builder for AdsConfiguration instances.

Summary

Public constructors

Builder(adTagUri: Uri!)

Constructs a new instance.

Public functions

MediaItem.AdsConfiguration!
MediaItem.AdsConfiguration.Builder!

Sets the ad tag URI to load.

MediaItem.AdsConfiguration.Builder!

Sets the ads identifier.

Public constructors

Builder

Builder(adTagUri: Uri!)

Constructs a new instance.

Parameters
adTagUri: Uri!

The ad tag URI to load.

Public functions

setAdTagUri

@CanIgnoreReturnValue
fun setAdTagUri(adTagUri: Uri!): MediaItem.AdsConfiguration.Builder!

Sets the ad tag URI to load.

setAdsId

@CanIgnoreReturnValue
fun setAdsId(adsId: Any?): MediaItem.AdsConfiguration.Builder!

Sets the ads identifier.

See details on adsId for how the ads identifier is used and how it's calculated if not explicitly set.