Package com.inmobi.ads.listeners.kotlin
Class InterstitialAdEventListener
-
- All Implemented Interfaces:
public abstract class InterstitialAdEventListener extends AdEventListener<InMobiInterstitial>
Listener for receiving notifications during the lifecycle of an interstitial.
-
-
Constructor Summary
Constructors Constructor Description InterstitialAdEventListener()
-
Method Summary
Modifier and Type Method Description UnitonAdFetchFailed(InMobiInterstitial ad, InMobiAdRequestStatus status)Called to notify that an ad preload has failed. UnitonAdWillDisplay(InMobiInterstitial ad)Called to indicate that the ad will be launching a fullscreen overlay. UnitonAdDisplayed(InMobiInterstitial ad, AdMetaInfo info)Called to indicate that the fullscreen overlay is now the topmost screen. UnitonAdDisplayFailed(InMobiInterstitial ad)Called to indicate that a request to show an ad (by calling InMobiInterstitial.show failed. UnitonAdDismissed(InMobiInterstitial ad)Called to indicate that the fullscreen overlay opened by the ad was closed. UnitonUserLeftApplication(InMobiInterstitial ad)Called to indicate that the user may leave the application on account of interacting with the ad. UnitonRewardsUnlocked(InMobiInterstitial ad, Map<Object, Object> rewards)Called to indicate that rewards have been 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(InMobiInterstitial ad, InMobiAdRequestStatus status)
Called to notify that an ad preload has failed.
Note** This notification is given only when you use
preload()in InMobiInterstitial.preloadManager- Parameters:
ad- Represents the InMobiInterstitial ad which was preloadedstatus- Represents the InMobiAdRequestStatus status containing error reason
-
onAdWillDisplay
Unit onAdWillDisplay(InMobiInterstitial ad)
Called to indicate that the ad will be launching a fullscreen overlay.
- Parameters:
ad- Represents the InMobiInterstitial ad which will display
-
onAdDisplayed
Unit onAdDisplayed(InMobiInterstitial ad, AdMetaInfo info)
Called to indicate that the fullscreen overlay is now the topmost screen.
- Parameters:
ad- Represents the InMobiInterstitial ad which is displayedinfo- Represents the meta info for the ad displayed
-
onAdDisplayFailed
Unit onAdDisplayFailed(InMobiInterstitial ad)
Called to indicate that a request to show an ad (by calling InMobiInterstitial.show failed. You should call InMobiInterstitial.load to request for a fresh ad.
- Parameters:
ad- Represents the InMobiInterstitial ad which failed to show
-
onAdDismissed
Unit onAdDismissed(InMobiInterstitial ad)
Called to indicate that the fullscreen overlay opened by the ad was closed.
- Parameters:
ad- Represents the InMobiInterstitial ad which was dismissed
-
onUserLeftApplication
Unit onUserLeftApplication(InMobiInterstitial ad)
Called to indicate that the user may leave the application on account of interacting with the ad.
- Parameters:
ad- Represents the InMobiInterstitial ad
-
onRewardsUnlocked
Unit onRewardsUnlocked(InMobiInterstitial ad, Map<Object, Object> rewards)
Called to indicate that rewards have been unlocked.
- Parameters:
ad- Represents the InMobiInterstitial ad for which rewards was unlockedrewards- Represents the rewards unlocked
-
-
-
-