monitorWith

fun ImaAdsLoader.Builder.monitorWith(muxStats: MuxStatsSdkMedia3<*>, customerAdEventListener: AdEvent.AdEventListener = AdEventListener { }, customerAdErrorListener: AdErrorEvent.AdErrorListener = AdErrorListener { }): ImaAdsLoader.Builder

Monitors the ImaAdsLoader created by the given ImaAdsLoader.Builder.

Mux must take ownership of the AdErrorListener and AdEventListener for this ads loader, but you can provide your own listeners and logic using the provided optional params

Parameters

muxStats

The MuxStatsSdkMedia3 instance monitoring your player

customerAdEventListener

Optional. An AdEventListener with your apps custom ad-event handling

customerAdErrorListener

Optional. An AdErrorListener containing your app's ad-error handling


fun ImaServerSideAdInsertionMediaSource.AdsLoader.Builder.monitorWith(muxStatsProvider: () -> MuxStatsSdkMedia3<*>?, customerAdEventListener: AdEvent.AdEventListener = AdEventListener { }, customerAdErrorListener: AdErrorEvent.AdErrorListener = AdErrorListener { }): ImaServerSideAdInsertionMediaSource.AdsLoader.Builder

Monitors the ImaAdsLoader created by the given ImaAdsLoader.Builder.

Mux must take ownership of the AdErrorListener and AdEventListener for this ads loader, but you can provide your own listeners and logic using the provided optional params

Parameters

muxStatsProvider

Provides MuxStatsSdkMedia3 instance for monitoring your player.

customerAdEventListener

Optional. An AdEventListener with your apps custom ad-event handling

customerAdErrorListener

Optional. An AdErrorListener containing your app's ad-error handling