Interface InstreamAdPlayerListener


  • public interface InstreamAdPlayerListener
    This interface used to handle callbacks of instream ad player. Callback calls on this object should respond to appropriate method calls on InstreamAdPlayer
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void onAdCompleted​(com.yandex.mobile.ads.video.playback.model.VideoAd videoAd)
      Fire this callback when instream ad player completed playing videoAd
      void onAdPaused​(com.yandex.mobile.ads.video.playback.model.VideoAd videoAd)
      Fire this callback when instream ad player paused playing videoAd
      void onAdPrepared​(com.yandex.mobile.ads.video.playback.model.VideoAd videoAd)
      Fire this callback when instream ad player is ready to present videoAd
      void onAdResumed​(com.yandex.mobile.ads.video.playback.model.VideoAd videoAd)
      Fire this callback when instream ad player resumed playing videoAd
      void onAdStarted​(com.yandex.mobile.ads.video.playback.model.VideoAd videoAd)
      Fire this callback when instream ad player started playing videoAd
      void onAdStopped​(com.yandex.mobile.ads.video.playback.model.VideoAd videoAd)
      Fire this callback when instream ad player stopped playing videoAd
      void onError​(com.yandex.mobile.ads.video.playback.model.VideoAd videoAd)
      Fire this callback when error occures in instream ad player while preparing or playing videoAd
      void onVolumeChanged​(com.yandex.mobile.ads.video.playback.model.VideoAd videoAd, float volume)
      Fire this callback when instream ad player volume was updated
    • Method Detail

      • onAdPrepared

        void onAdPrepared​(@NonNull
                          com.yandex.mobile.ads.video.playback.model.VideoAd videoAd)
        Fire this callback when instream ad player is ready to present videoAd
        Parameters:
        videoAd - Video Ad for which the event occurred
      • onAdStarted

        void onAdStarted​(@NonNull
                         com.yandex.mobile.ads.video.playback.model.VideoAd videoAd)
        Fire this callback when instream ad player started playing videoAd
        Parameters:
        videoAd - Video Ad for which the event occurred
      • onAdPaused

        void onAdPaused​(@NonNull
                        com.yandex.mobile.ads.video.playback.model.VideoAd videoAd)
        Fire this callback when instream ad player paused playing videoAd
        Parameters:
        videoAd - Video Ad for which the event occurred
      • onAdResumed

        void onAdResumed​(@NonNull
                         com.yandex.mobile.ads.video.playback.model.VideoAd videoAd)
        Fire this callback when instream ad player resumed playing videoAd
        Parameters:
        videoAd - Video Ad for which the event occurred
      • onAdCompleted

        void onAdCompleted​(@NonNull
                           com.yandex.mobile.ads.video.playback.model.VideoAd videoAd)
        Fire this callback when instream ad player completed playing videoAd
        Parameters:
        videoAd - Video Ad for which the event occurred
      • onVolumeChanged

        void onVolumeChanged​(@NonNull
                             com.yandex.mobile.ads.video.playback.model.VideoAd videoAd,
                             float volume)
        Fire this callback when instream ad player volume was updated
        Parameters:
        videoAd - Video Ad for which the event occurred
        volume - Volume value that was set to the player
      • onAdStopped

        void onAdStopped​(@NonNull
                         com.yandex.mobile.ads.video.playback.model.VideoAd videoAd)
        Fire this callback when instream ad player stopped playing videoAd
        Parameters:
        videoAd - Video Ad for which the event occurred
      • onError

        void onError​(@NonNull
                     com.yandex.mobile.ads.video.playback.model.VideoAd videoAd)
        Fire this callback when error occures in instream ad player while preparing or playing videoAd
        Parameters:
        videoAd - Video Ad for which the event occurred