Package com.my.target.instreamads
Interface InstreamAudioAd.InstreamAudioAdListener
-
- Enclosing class:
- InstreamAudioAd
public static interface InstreamAudioAd.InstreamAudioAdListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonBannerComplete(InstreamAudioAd ad, InstreamAudioAd.InstreamAudioAdBanner banner)Will be called when the ad audio banner completesvoidonBannerStart(InstreamAudioAd ad, InstreamAudioAd.InstreamAudioAdBanner banner)Will be called when the audio banner starts showing.voidonBannerTimeLeftChange(float timeLeft, float duration, InstreamAudioAd ad)Will be called multiple times for each banner between the onBannerStart and onBannerComplete events.voidonComplete(java.lang.String section, InstreamAudioAd ad)Will be called when the ad audio section completesvoidonError(java.lang.String reason, InstreamAudioAd ad)Will be called in case of any error in the ad displaying process.voidonLoad(InstreamAudioAd ad)Will be called if the ad is loaded successfully.voidonNoAd(java.lang.String reason, InstreamAudioAd ad)Will be called if the ad was not found.
-
-
-
Method Detail
-
onLoad
void onLoad(@NonNull InstreamAudioAd ad)Will be called if the ad is loaded successfully.- Parameters:
ad- current ad instance
-
onNoAd
void onNoAd(@NonNull java.lang.String reason, @NonNull InstreamAudioAd ad)Will be called if the ad was not found.- Parameters:
reason- of no adsad- current ad instance
-
onError
void onError(@NonNull java.lang.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
-
onBannerStart
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- See Also:
InstreamAudioAd.InstreamAudioAdBanner
-
onBannerComplete
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- See Also:
InstreamAudioAd.InstreamAudioAdBanner
-
onBannerTimeLeftChange
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
void onComplete(@NonNull java.lang.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
-
-