public interface AdListener
addAdListener method. When
the ad event occurs, that object's appropriate
method is invoked.
Modifier and Type | Method and Description |
---|---|
void |
onDismissScreen(Ad ad)
Method to be called when ad view being closed,and resuming current activity.
|
void |
onFailedToReceiveAd(Ad ad,
AdErrorCode adErrorCode)
Method to be called on loading ad failed.
|
void |
onLeaveApplication(Ad ad)
Method to be called when user click the ad, leave application because it will open browser to load ads.
|
void |
onPresentScreen(Ad ad)
Method to be called when Interstitial ad view displayed to user, current activity paused.
|
void |
onReceiveAd(Ad ad)
Method to be called on loading ad successful.
|
void onReceiveAd(Ad ad)
ad
- the advoid onFailedToReceiveAd(Ad ad, AdErrorCode adErrorCode)
ad
- the adadErrorCode
- the error code of failed to receive advoid onDismissScreen(Ad ad)
ad
- the advoid onLeaveApplication(Ad ad)
ad
- the advoid onPresentScreen(Ad ad)
ad
- the adjava.lang.Exception