Interface InstreamAd.InstreamAdListener
-
- All Implemented Interfaces:
public interface InstreamAd.InstreamAdListener
-
-
Method Summary
Modifier and Type Method Description abstract voidonBannerComplete(@NonNull() InstreamAd ad, @NonNull() InstreamAd.InstreamAdBanner banner)Will be called when the ad video banner completes abstract voidonBannerPause(@NonNull() InstreamAd ad, @NonNull() InstreamAd.InstreamAdBanner banner)Will be called when the ad video pauses abstract voidonBannerResume(@NonNull() InstreamAd ad, @NonNull() InstreamAd.InstreamAdBanner banner)Will be called when the ad video resumes from pause abstract voidonBannerShouldClose()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. abstract voidonBannerStart(@NonNull() InstreamAd ad, @NonNull() InstreamAd.InstreamAdBanner banner)Will be called when the video banner starts showing. abstract voidonBannerTimeLeftChange(float timeLeft, float duration, @NonNull() InstreamAd ad)Will be called multiple times for each banner between the onBannerStart and onBannerComplete events. abstract voidonComplete(@NonNull() String section, @NonNull() InstreamAd ad)Will be called when the ad video section completes abstract voidonError(@NonNull() String reason, @NonNull() InstreamAd ad)Will be called in case of any error in the ad displaying process. abstract voidonLoad(@NonNull() InstreamAd ad)Will be called if the ad is loaded successfully. abstract voidonNoAd(@NonNull() IAdLoadingError adLoadingError, @NonNull() InstreamAd ad)Will be called if the ad was not found. abstract voidonPostViewComplete()Will be invoked after InstreamAdPostViewPlayer.hide() execution. abstract voidonPostViewStart()Will be invoked after InstreamAdPostViewPlayer.show(PostViewData) execution. abstract voidonVideoMotionBannerComplete(@NonNull() InstreamAd ad, @NonNull() InstreamAd.InstreamAdVideoMotionBanner banner)Will be called when the VideoMotionData completes abstract voidonVideoMotionBannerShouldClose(@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. abstract voidonVideoMotionBannerStart(@NonNull() InstreamAd ad, @NonNull() InstreamAd.InstreamAdVideoMotionBanner banner)Will be called when the videoMotionData starts showing. -
-
Method Detail
-
onBannerComplete
abstract 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
-
onBannerPause
abstract 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
-
onBannerResume
abstract 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
-
onBannerShouldClose
abstract 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()
-
onBannerStart
abstract 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
-
onBannerTimeLeftChange
abstract 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
abstract void onComplete(@NonNull() 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
-
onError
abstract void onError(@NonNull() 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
-
onLoad
abstract void onLoad(@NonNull() InstreamAd ad)
Will be called if the ad is loaded successfully.
- Parameters:
ad- current ad instance
-
onNoAd
abstract 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
-
onPostViewComplete
abstract void onPostViewComplete()
Will be invoked after InstreamAdPostViewPlayer.hide() execution. Executed only if InstreamAd.setPostViewPlayer(InstreamAdPostViewPlayer) was configured
-
onPostViewStart
abstract void onPostViewStart()
Will be invoked after InstreamAdPostViewPlayer.show(PostViewData) execution. Executed only if InstreamAd.setPostViewPlayer(InstreamAdPostViewPlayer) was configured
-
onVideoMotionBannerComplete
abstract 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
-
onVideoMotionBannerShouldClose
abstract 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)
-
onVideoMotionBannerStart
abstract 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
-
-
-
-