Package com.my.target.instreamads
Interface InstreamAd.InstreamAdListener
-
- Enclosing class:
- InstreamAd
public static interface InstreamAd.InstreamAdListener
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidonBannerComplete(InstreamAd ad, InstreamAd.InstreamAdBanner banner)Will be called when the ad video banner completesvoidonBannerPause(InstreamAd ad, InstreamAd.InstreamAdBanner banner)Will be called when the ad video pausesvoidonBannerResume(InstreamAd ad, InstreamAd.InstreamAdBanner banner)Will be called when the ad video resumes from pausevoidonBannerShouldClose()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 instreamAd.skip()voidonBannerStart(InstreamAd ad, InstreamAd.InstreamAdBanner banner)Will be called when the video banner starts showing.voidonBannerTimeLeftChange(float timeLeft, float duration, InstreamAd ad)Will be called multiple times for each banner between the onBannerStart and onBannerComplete events.voidonComplete(java.lang.String section, InstreamAd ad)Will be called when the ad video section completesvoidonError(java.lang.String reason, InstreamAd ad)Will be called in case of any error in the ad displaying process.voidonLoad(InstreamAd ad)Will be called if the ad is loaded successfully.voidonNoAd(IAdLoadingError adLoadingError, InstreamAd ad)Will be called if the ad was not found.voidonVideoMotionBannerComplete(InstreamAd ad, InstreamAd.InstreamAdVideoMotionBanner banner)Will be called when the VideoMotionData completesvoidonVideoMotionBannerShouldClose(InstreamAd ad, InstreamAd.InstreamAdVideoMotionBanner 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 VideoMotionPlayerListener.onCloseByUser(Context context)voidonVideoMotionBannerStart(InstreamAd ad, InstreamAd.InstreamAdVideoMotionBanner banner)Will be called when the videoMotionData starts showing.
-
-
-
Method Detail
-
onLoad
void onLoad(@NonNull InstreamAd ad)Will be called if the ad is loaded successfully.- Parameters:
ad- current ad instance
-
onNoAd
void onNoAd(@NonNull IAdLoadingError adLoadingError, @NonNull InstreamAd ad)Will be called if the ad was not found.- Parameters:
adLoadingError- of no adsad- current ad instance
-
onError
void onError(@NonNull java.lang.String reason, @NonNull InstreamAd 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 InstreamAd ad, @NonNull InstreamAd.InstreamAdBanner banner)Will be called when the video banner starts showing.- Parameters:
ad- current ad instancebanner- banner which was started- See Also:
InstreamAd.InstreamAdBanner
-
onVideoMotionBannerStart
void onVideoMotionBannerStart(@NonNull InstreamAd ad, @NonNull InstreamAd.InstreamAdVideoMotionBanner banner)Will be called when the videoMotionData starts showing.- Parameters:
ad- current ad instancebanner- banner which was started- See Also:
InstreamAd.InstreamAdVideoMotionBanner
-
onVideoMotionBannerComplete
void onVideoMotionBannerComplete(@NonNull InstreamAd ad, @NonNull InstreamAd.InstreamAdVideoMotionBanner banner)Will be called when the VideoMotionData completes- Parameters:
ad- current ad instancebanner- banner which was completed- See Also:
InstreamAd.InstreamAdBanner
-
onBannerPause
void onBannerPause(@NonNull InstreamAd ad, @NonNull InstreamAd.InstreamAdBanner banner)Will be called when the ad video pauses- Parameters:
ad- current ad instancebanner- banner which was paused- See Also:
InstreamAd.InstreamAdBanner
-
onBannerResume
void onBannerResume(@NonNull InstreamAd ad, @NonNull InstreamAd.InstreamAdBanner banner)Will be called when the ad video resumes from pause- Parameters:
ad- current ad instancebanner- banner which was resumed- See Also:
InstreamAd.InstreamAdBanner
-
onBannerComplete
void onBannerComplete(@NonNull InstreamAd ad, @NonNull InstreamAd.InstreamAdBanner banner)Will be called when the ad video banner completes- Parameters:
ad- current ad instancebanner- banner which was completed- See Also:
InstreamAd.InstreamAdBanner
-
onBannerTimeLeftChange
void onBannerTimeLeftChange(float timeLeft, float duration, @NonNull InstreamAd ad)Will be called multiple times for each banner between the onBannerStart and onBannerComplete events.- Parameters:
timeLeft- ad video left time in secondsduration- duration of ad video in secondsad- current ad instance
-
onComplete
void onComplete(@NonNull java.lang.String section, @NonNull InstreamAd ad)Will be called when the ad video section completes- Parameters:
section- the name of completed video ad sectionad- current ad instance
-
onBannerShouldClose
void onBannerShouldClose()
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 instreamAd.skip()
-
onVideoMotionBannerShouldClose
void onVideoMotionBannerShouldClose(@NonNull InstreamAd ad, @NonNull InstreamAd.InstreamAdVideoMotionBanner 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 VideoMotionPlayerListener.onCloseByUser(Context context)
-
-