InstreamAdBinder

class InstreamAdBinder(context: Context, instreamAd: InstreamAd, instreamAdPlayer: InstreamAdPlayer?, videoPlayer: VideoPlayer)

InstreamAdBinder allows automatic presenting of instream ads

Constructors

Link copied to clipboard
constructor(context: Context, instreamAd: InstreamAd, instreamAdPlayer: InstreamAdPlayer?, videoPlayer: VideoPlayer)

Functions

Link copied to clipboard
fun bind(instreamAdView: InstreamAdView)

Starts instream ad playback

Link copied to clipboard
open fun getCoreInstreamAdBinder(): <Error class: unknown class>
Link copied to clipboard

Invalidates ad playback. Call this method right before ad player is invalidated.

Link copied to clipboard

Invalidates video playback. Call this method right before video player is invalidated.

Link copied to clipboard
fun prepareAd()

Prepare preroll (if it exists in ad)

Link copied to clipboard

Register a callback for listening InstreamAdBinder.

Link copied to clipboard

Sets listener for single video ad creative playback events.

Link copied to clipboard
fun unbind()

Unbinds binder from passed view and pauses ad playback