Package com.my.target.instreamads
Interface InstreamAudioAd.InstreamAudioAdListener
-
- All Implemented Interfaces:
public interface InstreamAudioAd.InstreamAudioAdListener
-
-
Method Summary
Modifier and Type Method Description abstract voidonBannerComplete(@NonNull() InstreamAudioAd ad, @NonNull() InstreamAudioAd.InstreamAudioAdBanner banner)Will be called when the ad audio banner completes abstract voidonBannerShouldClose(@NonNull() InstreamAudioAd ad, @NonNull() 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. abstract voidonBannerStart(@NonNull() InstreamAudioAd ad, @NonNull() InstreamAudioAd.InstreamAudioAdBanner banner)Will be called when the audio banner starts showing. abstract voidonBannerTimeLeftChange(float timeLeft, float duration, @NonNull() InstreamAudioAd ad)Will be called multiple times for each banner between the onBannerStart and onBannerComplete events. abstract voidonComplete(@NonNull() String section, @NonNull() InstreamAudioAd ad)Will be called when the ad audio section completes abstract voidonError(@NonNull() String reason, @NonNull() InstreamAudioAd ad)Will be called in case of any error in the ad displaying process. abstract voidonLoad(@NonNull() InstreamAudioAd ad)Will be called if the ad is loaded successfully. abstract voidonNoAd(@NonNull() IAdLoadingError adLoadingError, @NonNull() InstreamAudioAd ad)Will be called if the ad was not found. -
-
Method Detail
-
onBannerComplete
abstract void onBannerComplete(@NonNull() InstreamAudioAd ad, @NonNull() InstreamAudioAd.InstreamAudioAdBanner banner)
Will be called when the ad audio banner completes
- Parameters:
ad- current ad instancebanner- banner which was completed
-
onBannerShouldClose
abstract void onBannerShouldClose(@NonNull() InstreamAudioAd ad, @NonNull() 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 instancebanner- current banner instance
-
onBannerStart
abstract void onBannerStart(@NonNull() InstreamAudioAd ad, @NonNull() InstreamAudioAd.InstreamAudioAdBanner banner)
Will be called when the audio banner starts showing.
- Parameters:
ad- current ad instancebanner- banner which was started
-
onBannerTimeLeftChange
abstract void onBannerTimeLeftChange(float timeLeft, float duration, @NonNull() InstreamAudioAd ad)
Will be called multiple times for each banner between the onBannerStart and onBannerComplete events.
- Parameters:
timeLeft- ad audio left time in secondsduration- duration of ad audio in secondsad- current ad instance
-
onComplete
abstract void onComplete(@NonNull() String section, @NonNull() InstreamAudioAd ad)
Will be called when the ad audio section completes
- Parameters:
section- the name of completed audio ad sectionad- current ad instance
-
onError
abstract void onError(@NonNull() String reason, @NonNull() InstreamAudioAd ad)
Will be called in case of any error in the ad displaying process.
- Parameters:
reason- reason for errorad- current ad instance
-
onLoad
abstract void onLoad(@NonNull() InstreamAudioAd ad)
Will be called if the ad is loaded successfully.
- Parameters:
ad- current ad instance
-
onNoAd
abstract void onNoAd(@NonNull() IAdLoadingError adLoadingError, @NonNull() InstreamAudioAd ad)
Will be called if the ad was not found.
- Parameters:
adLoadingError- of no adsad- current ad instance
-
-
-
-