Package com.my.target.instreamads
Interface InstreamAd.InstreamAdListener
- Enclosing class:
- InstreamAd
public static interface InstreamAd.InstreamAdListener
-
Method Summary
Modifier and TypeMethodDescriptionvoidonBannerComplete(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 pausevoidThe 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(String section, InstreamAd ad) Will be called when the ad video section completesvoidonError(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.voidWill be called when the VideoMotionData completesvoidThe 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)voidWill be called when the videoMotionData starts showing.
-
Method Details
-
onLoad
Will be called if the ad is loaded successfully.- Parameters:
ad- current ad instance
-
onNoAd
Will be called if the ad was not found.- Parameters:
adLoadingError- of no adsad- current ad instance
-
onError
Will be called in case of any error in the ad displaying process.- Parameters:
reason- reason for errorad- current ad instance
-
onBannerStart
Will be called when the video banner starts showing.- Parameters:
ad- current ad instancebanner- banner which was started- See Also:
-
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:
-
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:
-
onBannerPause
Will be called when the ad video pauses- Parameters:
ad- current ad instancebanner- banner which was paused- See Also:
-
onBannerResume
Will be called when the ad video resumes from pause- Parameters:
ad- current ad instancebanner- banner which was resumed- See Also:
-
onBannerComplete
Will be called when the ad video banner completes- Parameters:
ad- current ad instancebanner- banner which was completed- See Also:
-
onBannerTimeLeftChange
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
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)
-