Interface InstreamAudioAd.InstreamAudioAdListener

Enclosing class:
InstreamAudioAd

public static interface InstreamAudioAd.InstreamAudioAdListener
  • Method Details

    • onLoad

      void onLoad(InstreamAudioAd ad)
      Will be called if the ad is loaded successfully.
      Parameters:
      ad - current ad instance
    • onNoAd

      void onNoAd(IAdLoadingError adLoadingError, InstreamAudioAd ad)
      Will be called if the ad was not found.
      Parameters:
      adLoadingError - of no ads
      ad - current ad instance
    • onError

      void onError(String reason, InstreamAudioAd ad)
      Will be called in case of any error in the ad displaying process.
      Parameters:
      reason - reason for error
      ad - current ad instance
    • onBannerStart

      void onBannerStart(InstreamAudioAd ad, InstreamAudioAd.InstreamAudioAdBanner banner)
      Will be called when the audio banner starts showing.
      Parameters:
      ad - current ad instance
      banner - banner which was started
      See Also:
    • onBannerComplete

      void onBannerComplete(InstreamAudioAd ad, InstreamAudioAd.InstreamAudioAdBanner banner)
      Will be called when the ad audio banner completes
      Parameters:
      ad - current ad instance
      banner - banner which was completed
      See Also:
    • onBannerTimeLeftChange

      void onBannerTimeLeftChange(float timeLeft, float duration, InstreamAudioAd ad)
      Will be called multiple times for each banner between the onBannerStart and onBannerComplete events.
      Parameters:
      timeLeft - ad audio left time in seconds
      duration - duration of ad audio in seconds
      ad - current ad instance
    • onComplete

      void onComplete(String section, InstreamAudioAd ad)
      Will be called when the ad audio section completes
      Parameters:
      section - the name of completed audio ad section
      ad - current ad instance
    • onBannerShouldClose

      void onBannerShouldClose(InstreamAudioAd ad, InstreamAudioAd.InstreamAudioAdBanner banner)
      The method will be called when the ad should be closed when the adchoice item is clicked, for this, in the implementation of this method, you need to call instreamAudioAd.skip()
      Parameters:
      ad - current ad instance
      banner - current banner instance