public abstract class NativeAdEventListener
extends java.lang.Object
Constructor and Description |
---|
NativeAdEventListener() |
Modifier and Type | Method and Description |
---|---|
void |
onAdClicked(InMobiNative ad)
Called to notify ad was clicked.
|
void |
onAdClicked(T ad,
java.util.Map<java.lang.Object,java.lang.Object> params)
Called to notify that the user interacted with the ad.
|
void |
onAdFetchSuccessful(T ad,
AdMetaInfo info)
Called to notify that an ad was received successfully but is not ready to be displayed yet.
|
void |
onAdFullScreenDismissed(InMobiNative ad) |
void |
onAdFullScreenDisplayed(InMobiNative ad)
Called to notify that the ad opened an overlay that covers the screen.
|
void |
onAdFullScreenWillDisplay(InMobiNative ad)
Called to notify that the ad will open an overlay that covers the screen.
|
void |
onAdImpressed(InMobiNative ad)
Called to notify impression has been recorded for this ad.
|
void |
onAdLoadFailed(T ad,
InMobiAdRequestStatus status)
Called to notify that a request to load an ad failed.
|
void |
onAdLoadSucceeded(T ad)
Deprecated.
|
void |
onAdLoadSucceeded(T ad,
AdMetaInfo info)
Called to notify that an ad was successfully loaded and is ready to be displayed.
|
void |
onAdReceived(InMobiNative ad)
Deprecated.
|
void |
onAdStatusChanged(InMobiNative nativeAd)
Called to notify that the ad status has changed.
|
void |
onRequestPayloadCreated(byte[] requestPayload)
Called to notify when the request payload is created
|
void |
onRequestPayloadCreationFailed(InMobiAdRequestStatus status)
Called to notify when the request payload creation fails
|
void |
onUserWillLeaveApplication(InMobiNative ad)
Called to notify that the user is about to leave the application as a result of interacting with it.
|
@Deprecated public void onAdReceived(InMobiNative ad)
InMobiNative.load()
. Note This does not
indicate that the ad can be shown yet. Your code should show an ad after the
#onAdLoadSucceeded(InMobiNative)
method is called. Alternately, if you do not
want to handle this event, you must test if the ad is ready to be shown by checking the
result of calling the InMobiNative.isReady()
method.
ad
- Represents the InMobiNative
ad for which ad content was receivedpublic void onAdFullScreenDismissed(InMobiNative ad)
ad
- Represents the InMobiNative
ad whose fullscreen was dismissedpublic void onAdFullScreenWillDisplay(InMobiNative ad)
ad
- Represents the InMobiNative
ad which will go fullscreenpublic void onAdFullScreenDisplayed(InMobiNative ad)
ad
- Represents the InMobiNative
ad whose fullscreen will be displayedpublic void onUserWillLeaveApplication(InMobiNative ad)
ad
- Represents the InMobiNative
adpublic void onAdImpressed(InMobiNative ad)
ad
- Represents the InMobiNative
ad for which impression is recorded.public void onAdClicked(InMobiNative ad)
ad
- Represents the InMobiNative
ad which was clickedpublic void onAdStatusChanged(InMobiNative nativeAd)
nativeAd
- Represents the InMobiNative
adpublic void onAdFetchSuccessful(T ad, AdMetaInfo info)
ad
- Represents the ad which was loaded or preloadedinfo
- Represents the ad meta information@Deprecated public void onAdLoadSucceeded(T ad)
onAdFetchSuccessful(Object, AdMetaInfo)
instead.
Called to notify that an ad was successfully loaded.ad
- Represents the ad which was loadedpublic void onAdLoadSucceeded(T ad, AdMetaInfo info)
ad
- Represents the ad which was loadedinfo
- Represents the ad meta informationpublic void onAdLoadFailed(T ad, InMobiAdRequestStatus status)
ad
- Represents the ad which failed to loadstatus
- Represents the InMobiAdRequestStatus
status containing error reasonpublic void onAdClicked(T ad, java.util.Map<java.lang.Object,java.lang.Object> params)
ad
- Represents the ad on which user clickedparams
- Represents the click parameterspublic void onRequestPayloadCreated(byte[] requestPayload)
requestPayload
- Represents the request payloadpublic void onRequestPayloadCreationFailed(InMobiAdRequestStatus status)
status
- Represents the InMobiAdRequestStatus
status containing error reason