Package 

Interface InstreamAdListener

  • All Implemented Interfaces:

    @MainThread() 
    public interface InstreamAdListener
    
                        

    This interface is used to notify about events occuring during instream ad playback.

    • 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 Unit onInstreamAdCompleted() Notifies about completion of instream ad playback.
      abstract Unit onInstreamAdPrepared() Notifies that preroll (if it exists in ad) is prepared.
      abstract Unit onError(String reason) Notifies about error occured during instream ad playback.
      • Methods inherited from class java.lang.Object

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

    • Method Detail

      • onInstreamAdPrepared

         abstract Unit onInstreamAdPrepared()

        Notifies that preroll (if it exists in ad) is prepared. If no preroll exists, callback will be fired immediately after prepare() call.

      • onError

         abstract Unit onError(String reason)

        Notifies about error occured during instream ad playback.

        Parameters:
        reason - Describes error