public interface EventListener
| Modifier and Type | Method and Description |
|---|---|
void |
onAdClicked(InterstitialAd interstitialAd)
This method will be invoked when user clicked on an ad.
|
void |
onAdClosed(InterstitialAd interstitialAd)
This method will be invoked when a fullscreen interstitial ad is closed.
|
void |
onAdError(InterstitialAd interstitialAd,
InterstitialError interstitialError)
This method will be invoked when an advertisement failed during loading or showing.
|
void |
onAdFailedToLoad(InterstitialRequestError interstitialRequestError)
This method will be invoked when an advertisement request is failed.
|
void |
onAdImpression(InterstitialAd interstitialAd)
This method will be invoked when an impression occurred.
|
void |
onAdLoaded(InterstitialAd interstitialAd)
This method will be invoked when an advertisement is successfully received.
|
void |
onAdOpened(InterstitialAd interstitialAd)
This method will be invoked when a fullscreen interstitial ad is opened.
|
void |
onAdTTLExpired(InterstitialAd interstitialAd)
This method will be invoked on when an advertisement's TTL(time to live) is expired.
|
void onAdLoaded(@NonNull
InterstitialAd interstitialAd)
It is invoked on main thread only.
void onAdFailedToLoad(@NonNull
InterstitialRequestError interstitialRequestError)
It is invoked on main thread only.
interstitialRequestError - InterstitialRequestError the error.void onAdError(@NonNull
InterstitialAd interstitialAd,
@NonNull
InterstitialError interstitialError)
It is invoked on main thread only.
interstitialError - InterstitialError the error.void onAdOpened(@NonNull
InterstitialAd interstitialAd)
It is invoked on main thread only.
void onAdClosed(@NonNull
InterstitialAd interstitialAd)
It is invoked on main thread only.
void onAdClicked(@NonNull
InterstitialAd interstitialAd)
It is invoked on main thread only.
void onAdImpression(@NonNull
InterstitialAd interstitialAd)
It is invoked on main thread only.
void onAdTTLExpired(@NonNull
InterstitialAd interstitialAd)
Will be invoked on main thread only.
interstitialAd - InterstitialAd advertisement object View that received onAdTTLExpired event