Interface AdPlayer<T>

  • Type Parameters:
    T - the type of an Ad to handle.
    All Known Implementing Classes:
    ExoAdPlayer, PulseAdPlayer

    public interface AdPlayer<T>
    Represents the contract of an AdPlayer. AdPlayer is a player designed to play ads.
    • Method Detail

      • loadAd

        void loadAd​(@NonNull
                    T ad)
        Loads an ad of type T.
        ad - ad to be loaded.
      • playAd

        void playAd()
        Plays an ad.
      • pauseAd

        void pauseAd()
        Pauses an ad.
      • seekTo

        void seekTo​(long position)
        Seeks to the specified position.
      • release

        void release()
        Releases the AdPlayer.
      • skipAd

        void skipAd()
        Skips the current ad.