Package com.inmobi.ads.listeners.kotlin
Class BannerAdEventListener
-
- All Implemented Interfaces:
public abstract class BannerAdEventListener extends AdEventListener<InMobiBanner>
A listener for receiving notifications during the lifecycle of a banner ad.
-
-
Constructor Summary
Constructors Constructor Description BannerAdEventListener()
-
Method Summary
Modifier and Type Method Description UnitonAdFetchFailed(InMobiBanner ad, InMobiAdRequestStatus status)Called to notify that an ad preload has failed. UnitonAdDisplayed(InMobiBanner ad)Called to notify that the banner ad has expanded UnitonAdDismissed(InMobiBanner ad)Called to notify that the User is about to return to the application after closing the ad. UnitonUserLeftApplication(InMobiBanner ad)Called to notify that the user is about to leave the application as a result of interacting with the ad. UnitonRewardsUnlocked(InMobiBanner ad, Map<Object, Object> rewards)Called to notify that a reward was unlocked. -
Methods inherited from class com.inmobi.ads.listeners.kotlin.AdEventListener
onAdClicked, onAdFetchSuccessful, onAdImpression, onAdLoadFailed, onAdLoadSucceeded, onImraidLog, onRequestPayloadCreated, onRequestPayloadCreationFailed -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
onAdFetchFailed
Unit onAdFetchFailed(InMobiBanner ad, InMobiAdRequestStatus status)
Called to notify that an ad preload has failed.
Note** This notification is given only when you use
preload()in InMobiBanner.preloadManager- Parameters:
ad- Represents the InMobiBanner ad which was preloadedstatus- Represents the InMobiAdRequestStatus status containing error reason
-
onAdDisplayed
Unit onAdDisplayed(InMobiBanner ad)
Called to notify that the banner ad has expanded
- Parameters:
ad- Represents the InMobiBanner ad which was expanded
-
onAdDismissed
Unit onAdDismissed(InMobiBanner ad)
Called to notify that the User is about to return to the application after closing the ad.
- Parameters:
ad- Represents the InMobiBanner ad which was closed
-
onUserLeftApplication
Unit onUserLeftApplication(InMobiBanner ad)
Called to notify that the user is about to leave the application as a result of interacting with the ad.
- Parameters:
ad- Represents the InMobiBanner ad
-
onRewardsUnlocked
Unit onRewardsUnlocked(InMobiBanner ad, Map<Object, Object> rewards)
Called to notify that a reward was unlocked.
- Parameters:
ad- Represents the InMobiBanner ad for which rewards was unlockedrewards- Represents the rewards unlocked
-
-
-
-