Package 

Class InstreamAdBinder

  • All Implemented Interfaces:
    com.monetization.ads.instream.binder.UnifiedInstreamAdBinder

    @MainThread() 
    public class InstreamAdBinder
     implements UnifiedInstreamAdBinder
                        

    InstreamAdBinder allows automatic presenting of instream ads

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Detail

      • bind

         void bind(@NonNull() InstreamAdView instreamAdView)

        Starts instream ad playback

        Parameters:
        instreamAdView - the view in which instream ad breaks will be displayed
      • invalidateVideoPlayer

         void invalidateVideoPlayer()

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

      • invalidateAdPlayer

         void invalidateAdPlayer()

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

      • unbind

         void unbind()

        Unbinds binder from passed view and pauses ad playback

      • prepareAd

         void prepareAd()

        Prepare preroll (if it exists in ad)

      • setVideoAdPlaybackListener

         void setVideoAdPlaybackListener(@Nullable() VideoAdPlaybackListener listener)

        Sets listener for single video ad creative playback events.

        Parameters:
        listener - A VideoAdPlaybackListener that will be triggered on video events.