Package 

Interface InstreamAdPlayerListener

  • All Implemented Interfaces:

    @MainThread() 
    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

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract void onAdPrepared(@NonNull() VideoAd videoAd) Fire this callback when instream ad player is ready to present videoAd
      abstract void onAdStarted(@NonNull() VideoAd videoAd) Fire this callback when instream ad player started playing videoAd
      abstract void onAdPaused(@NonNull() VideoAd videoAd) Fire this callback when instream ad player paused playing videoAd
      abstract void onAdResumed(@NonNull() VideoAd videoAd) Fire this callback when instream ad player resumed playing videoAd
      abstract void onAdBufferingStarted(@NonNull() VideoAd videoAd) Fire this callback when instream ad player started buffering the videoAd
      abstract void onAdBufferingFinished(@NonNull() VideoAd videoAd) Fire this callback when instream ad player ended buffering the videoAd
      abstract void onAdCompleted(@NonNull() VideoAd videoAd) Fire this callback when instream ad player completed playing videoAd
      abstract void onVolumeChanged(@NonNull() VideoAd videoAd, float volume) Fire this callback when instream ad player volume was updated
      abstract void onAdStopped(@NonNull() VideoAd videoAd) Fire this callback when instream ad player stopped playing videoAd
      abstract void onAdSkipped(@NonNull() VideoAd videoAd) Fire this callback when instream ad player stopped playing videoAd
      abstract void onError(@NonNull() VideoAd videoAd, @NonNull() InstreamAdPlayerError error) Fire this callback when error occures in instream ad player while preparing or playing videoAd
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • onAdPrepared

         abstract void onAdPrepared(@NonNull() VideoAd videoAd)

        Fire this callback when instream ad player is ready to present videoAd

        Parameters:
        videoAd - Video Ad for which the event occurred
      • onAdStarted

         abstract void onAdStarted(@NonNull() VideoAd videoAd)

        Fire this callback when instream ad player started playing videoAd

        Parameters:
        videoAd - Video Ad for which the event occurred
      • onAdPaused

         abstract void onAdPaused(@NonNull() VideoAd videoAd)

        Fire this callback when instream ad player paused playing videoAd

        Parameters:
        videoAd - Video Ad for which the event occurred
      • onAdResumed

         abstract void onAdResumed(@NonNull() VideoAd videoAd)

        Fire this callback when instream ad player resumed playing videoAd

        Parameters:
        videoAd - Video Ad for which the event occurred
      • onAdBufferingStarted

         abstract void onAdBufferingStarted(@NonNull() VideoAd videoAd)

        Fire this callback when instream ad player started buffering the videoAd

        Parameters:
        videoAd - Video Ad for which the event occurred
      • onAdBufferingFinished

         abstract void onAdBufferingFinished(@NonNull() VideoAd videoAd)

        Fire this callback when instream ad player ended buffering the videoAd

        Parameters:
        videoAd - Video Ad for which the event occurred
      • onAdCompleted

         abstract void onAdCompleted(@NonNull() VideoAd videoAd)

        Fire this callback when instream ad player completed playing videoAd

        Parameters:
        videoAd - Video Ad for which the event occurred
      • onVolumeChanged

         abstract void onVolumeChanged(@NonNull() 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

         abstract void onAdStopped(@NonNull() VideoAd videoAd)

        Fire this callback when instream ad player stopped playing videoAd

        Parameters:
        videoAd - Video Ad for which the event occurred
      • onAdSkipped

         abstract void onAdSkipped(@NonNull() VideoAd videoAd)

        Fire this callback when instream ad player stopped playing videoAd

        Parameters:
        videoAd - Video Ad for which the event occurred
      • onError

         abstract void onError(@NonNull() VideoAd videoAd, @NonNull() InstreamAdPlayerError error)

        Fire this callback when error occures in instream ad player while preparing or playing videoAd

        Parameters:
        videoAd - Video Ad for which the event occurred
        error - InstreamAdPlayerError that occurred